3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array( array( 'title' => 'My title', 'date' => 'My date' ), array( 'title' => 'Another title', 'name' => 'Another Name' ), array( 'name' => 'Another Name', 'date' => 'Another date' ), array( 'date' => 'Another date', 'name' => 'Another Name' ) ); $data=array_map(function($element){ return [ 'title'=>isset($element['title'])?$element['title']:'', 'name'=>isset($element['name'])?$element['name']:'', 'date'=>isset($element['date'])?$element['date']:'' ]; },$data); print_r($data);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.5.10.0090.00816.40
8.5.00.0100.01120.05
8.4.160.0130.00823.88
8.4.150.0020.00114.05
8.4.140.0120.01317.63
8.4.130.0130.00617.39
8.4.120.0090.01120.84
8.4.110.0120.00718.98
8.4.100.0100.01117.75
8.4.90.0110.00920.38
8.4.80.0050.00519.13
8.4.70.0110.00218.74
8.4.60.0140.00722.23
8.4.50.0110.01020.43
8.4.40.0030.00717.55
8.4.30.0060.01319.43
8.4.20.0130.00720.38
8.4.10.0060.00317.66
8.3.280.0010.00114.05
8.3.270.0110.00816.32
8.3.260.0110.00416.84
8.3.250.0120.00417.11
8.3.240.0130.00616.76
8.3.230.0080.01116.74
8.3.220.0100.00818.85
8.3.210.0030.00516.70
8.3.200.0040.00416.71
8.3.190.0150.00517.32
8.3.180.0100.00716.92
8.3.170.0140.00317.04
8.3.160.0150.00318.37
8.3.150.0150.00018.92
8.3.140.0030.00517.25
8.3.130.0000.00818.50
8.3.120.0100.01020.61
8.3.110.0070.01316.50
8.3.100.0050.00524.06
8.3.90.0030.00526.77
8.3.80.0040.00417.97
8.3.70.0030.01218.59
8.3.60.0060.00918.45
8.3.50.0080.00817.46
8.3.40.0090.00618.85
8.3.30.0040.01118.70
8.3.20.0030.00618.66
8.3.10.0080.00021.76
8.3.00.0000.00821.94
8.2.290.0070.01216.88
8.2.280.0080.00818.43
8.2.270.0080.01117.44
8.2.260.0150.00016.50
8.2.250.0080.00016.96
8.2.240.0110.00017.48
8.2.230.0040.00420.94
8.2.220.0000.00937.54
8.2.210.0120.00326.77
8.2.200.0060.00316.75
8.2.190.0120.00318.42
8.2.180.0150.00318.29
8.2.170.0150.00022.96
8.2.160.0100.00322.04
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00420.97
8.2.120.0050.00326.35
8.2.110.0050.00519.30
8.2.100.0040.00717.91
8.2.90.0060.00317.88
8.2.80.0060.00318.73
8.2.70.0030.00517.50
8.2.60.0090.00017.63
8.2.50.0040.00419.48
8.2.40.0090.00019.48
8.2.30.0070.00020.70
8.2.20.0030.00618.02
8.2.10.0000.00818.20
8.2.00.0040.00418.13
8.1.330.0070.01116.14
8.1.320.0100.00917.75
8.1.310.0090.00618.31
8.1.300.0030.00618.73
8.1.290.0090.00030.84
8.1.280.0130.00325.92
8.1.270.0080.00020.20
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0090.00023.84
8.1.230.0000.01019.09
8.1.220.0090.00017.79
8.1.210.0030.00618.77
8.1.200.0000.00917.35
8.1.190.0030.00517.35
8.1.180.0050.00318.10
8.1.170.0040.00417.62
8.1.160.0050.00318.91
8.1.150.0040.00418.96
8.1.140.0030.00520.58
8.1.130.0030.00520.28
8.1.120.0040.00417.51
8.1.110.0030.00717.41
8.1.100.0000.00817.54
8.1.90.0030.00517.46
8.1.80.0060.00317.50
8.1.70.0030.00317.50
8.1.60.0050.00317.59
8.1.50.0000.00817.52
8.1.40.0000.00717.43
8.1.30.0030.00617.57
8.1.20.0080.00017.56
8.1.10.0020.00517.55
8.1.00.0060.00317.45
8.0.300.0070.00018.77
8.0.290.0040.00416.58
8.0.280.0070.00018.42
8.0.270.0030.00417.27
8.0.260.0030.00320.09
8.0.250.0000.00716.81
8.0.240.0070.00016.82
8.0.230.0070.00016.89
8.0.220.0080.00016.82
8.0.210.0000.00716.79
8.0.200.0030.00316.95
8.0.190.0000.00817.00
8.0.180.0000.00716.97
8.0.170.0060.00316.84
8.0.160.0040.00416.80
8.0.150.0070.00016.73
8.0.140.0030.00316.80
8.0.130.0000.00513.34
8.0.120.0040.00416.83
8.0.110.0000.00716.84
8.0.100.0000.00817.02
8.0.90.0000.00716.69
8.0.80.0070.00916.94
8.0.70.0040.00416.85
8.0.60.0000.00716.87
8.0.50.0000.00817.01
8.0.30.0090.01017.09
8.0.20.0110.00817.40
8.0.10.0080.00017.02
8.0.00.0070.01116.73
7.4.330.0000.00715.55
7.4.320.0060.00016.54
7.4.300.0060.00016.59
7.4.290.0030.00316.56
7.4.280.0030.00716.45
7.4.270.0040.00416.41
7.4.260.0040.00416.53
7.4.250.0040.00416.60
7.4.240.0000.00716.47
7.4.230.0050.00216.45
7.4.220.0030.00516.40
7.4.210.0110.00516.59
7.4.200.0000.00716.59
7.4.160.0130.00516.50
7.4.140.0100.00817.86
7.4.130.0060.01116.42
7.4.120.0080.01016.52
7.4.110.0100.01016.46
7.4.100.0070.01016.64
7.4.90.0120.01516.60
7.4.80.0060.01119.39
7.4.70.0030.01916.36
7.4.60.0120.00916.39
7.4.50.0090.00916.34
7.4.40.0080.01716.46
7.4.10.0140.00314.79
7.4.00.0070.01114.94
7.3.330.0040.00413.23
7.3.320.0000.00513.37
7.3.310.0070.00016.23
7.3.300.0000.00716.24
7.3.290.0000.00616.17
7.3.280.0070.00916.28
7.3.260.0130.00716.39
7.3.240.0080.01216.45
7.3.230.0060.01116.34
7.3.210.0100.01316.54
7.3.200.0100.00716.48
7.3.190.0100.00716.37
7.3.180.0130.00916.32
7.3.170.0110.00516.39
7.3.160.0140.00716.52
7.3.130.0130.00914.95
7.3.120.0070.00914.80
7.3.110.0040.01114.86
7.3.100.0060.00614.81
7.3.90.0050.01214.87
7.3.80.0090.00514.83
7.3.70.0100.00514.88
7.3.60.0040.00814.76
7.3.50.0070.00914.78
7.3.40.0050.00814.70
7.3.30.0040.00914.79
7.3.20.0050.01016.63
7.3.10.0060.00816.55
7.3.00.0060.00816.51
7.2.330.0070.01116.49
7.2.320.0090.00916.46
7.2.310.0100.00716.77
7.2.300.0100.01316.41
7.2.290.0160.00316.76
7.2.260.0090.00914.95
7.2.250.0040.01115.12
7.2.240.0070.01014.91
7.2.230.0050.01114.95
7.2.220.0100.00615.08
7.2.210.0080.00714.85
7.2.200.0060.00514.89
7.2.190.0070.00714.79
7.2.180.0060.01014.99
7.2.170.0070.00515.00
7.2.160.0050.00914.84
7.2.150.0130.00516.98
7.2.140.0040.01016.79
7.2.130.0050.01216.93
7.2.120.0060.00816.94
7.2.110.0030.01016.81
7.2.100.0620.00716.16
7.2.90.0090.00716.33
7.2.80.0200.00716.09
7.2.70.0470.00616.19
7.2.60.0520.00416.01
7.2.50.0140.00416.32
7.2.40.0360.01116.21
7.2.30.0130.00816.27
7.2.20.0230.00416.22
7.2.10.0360.01016.11
7.2.00.0190.00816.03
7.1.330.0050.00915.74
7.1.320.0060.00615.76
7.1.310.0040.00915.82
7.1.300.0090.00515.80
7.1.290.0080.00515.79
7.1.280.0060.00715.71
7.1.270.0050.01015.72
7.1.260.0040.00715.77
7.1.250.0020.01015.82
7.1.240.0030.01115.77
7.1.230.0050.00515.86
7.1.220.0120.00514.86
7.1.210.0100.00614.66
7.1.200.0340.00914.84
7.1.190.0170.00814.69
7.1.180.0080.00814.58
7.1.170.0260.00714.75
7.1.160.0180.00714.61
7.1.150.2070.00614.72
7.1.140.0070.00914.90
7.1.130.0550.01014.85
7.1.120.0310.00714.64
7.1.110.0110.01014.76
7.1.100.0170.00514.89
7.1.90.0050.01114.79
7.1.80.0270.00214.78
7.1.70.1320.01014.91
7.1.60.0140.01123.82
7.1.50.1550.01123.80
7.1.40.0200.01023.63
7.1.30.0140.01123.71
7.1.20.0180.00823.66
7.1.10.0340.01014.73
7.1.00.1230.00714.65
7.0.330.0120.00315.56
7.0.320.0120.00215.24
7.0.310.0080.00815.41
7.0.300.0080.00615.18
7.0.290.0090.00915.04
7.0.280.0040.01115.41
7.0.270.0080.00515.27
7.0.260.0040.00715.30
7.0.250.0100.00615.38
7.0.240.0160.00015.62
7.0.230.0060.00915.34
7.0.220.0090.00315.17
7.0.210.0100.00315.43
7.0.200.0120.00315.33
7.0.190.0030.01015.38
7.0.180.0040.00715.44
7.0.170.0060.00615.25
7.0.160.0030.00915.52
7.0.150.0040.00815.36
7.0.140.0060.00615.21
7.0.130.0030.01015.40
7.0.120.0100.00415.58
7.0.110.0070.00715.41
7.0.100.0060.00915.48
7.0.90.0040.01215.43
7.0.80.0090.00615.40
7.0.70.0080.00315.36
7.0.60.0070.00415.54
7.0.50.0070.00715.34
7.0.40.0090.00313.24
7.0.30.0040.00713.36
7.0.20.0000.01313.51
7.0.10.0040.00413.57
7.0.00.0000.01413.45
5.6.400.0030.01014.28
5.6.390.0080.00314.57
5.6.380.0090.00614.26
5.6.370.0080.01214.59
5.6.360.0080.01714.35
5.6.350.0100.00714.34
5.6.340.0000.01314.60
5.6.330.0060.00914.28
5.6.320.0130.00313.86
5.6.310.0060.00614.57
5.6.300.0000.01614.41
5.6.290.0060.00614.27
5.6.280.0030.00614.43
5.6.270.0090.00014.51
5.6.260.0100.00314.03
5.6.250.0070.01314.39
5.6.240.0070.00314.29
5.6.230.0090.00614.41
5.6.220.0040.01014.23
5.6.210.0060.00913.94
5.6.200.0040.01114.52
5.6.190.0030.01014.01
5.6.180.0060.01014.57
5.6.170.0040.01414.42
5.6.160.0070.00714.35
5.6.150.0070.01014.25
5.6.140.0070.01014.18
5.6.130.0060.01014.30
5.6.120.0040.00814.42
5.6.110.0030.01214.21
5.6.100.0070.00714.21
5.6.90.0030.01214.02
5.6.80.0040.01114.30
5.6.70.0100.00314.09
5.6.60.0030.01014.00
5.6.50.0070.00714.33
5.6.40.0070.00714.48
5.6.30.0030.00614.07
5.6.20.0090.00614.10
5.6.10.0030.01013.95
5.6.00.0000.01414.27

preferences:
25.6 ms | 403 KiB | 5 Q