3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fruits = [ 'citrus'=>[ 'fruit one'=>'orange', 'fruit two'=>'lime' ], 'melon'=>[ 'fruit one'=>'honeydew', 'fruit two'=>'cantaloupe' ], 'berry'=>[ 'fruit one'=>'raspberry', 'fruit two'=>'strawberry' ], 'apple'=>[ 'fruit one'=>'granny smith', 'fruit two'=>'fuji' ], ]; foreach(array_slice($fruits,0,2) as $fruitGroup) echo $fruitGroup['fruit one']."\n"; echo "\n"; foreach(array_slice($fruits,2,2) as $fruitGroup) echo $fruitGroup['fruit one']."\n";

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.3.130.0130.00318.46
8.3.120.0000.00918.97
8.3.110.0060.01320.94
8.3.100.0110.00724.06
8.3.90.0040.00426.77
8.3.80.0070.00318.68
8.3.70.0110.01116.58
8.3.60.0110.00416.35
8.3.50.0130.00522.88
8.3.40.0070.00718.54
8.3.30.0060.01118.59
8.3.20.0000.00721.96
8.3.10.0040.00423.52
8.3.00.0000.00819.66
8.2.250.0030.00618.71
8.2.240.0060.00319.21
8.2.230.0120.00022.58
8.2.220.0060.00937.54
8.2.210.0040.00426.77
8.2.200.0060.00318.16
8.2.190.0100.01016.75
8.2.180.0070.01125.92
8.2.170.0170.00318.95
8.2.160.0120.00822.96
8.2.150.0150.00025.66
8.2.140.0040.00424.66
8.2.130.0030.00622.33
8.2.120.0040.00426.16
8.2.110.0030.00621.25
8.2.100.0040.01117.77
8.2.90.0050.00319.35
8.2.80.0060.00317.97
8.2.70.0040.00417.75
8.2.60.0060.00318.03
8.2.50.0040.00418.10
8.2.40.0080.00022.36
8.2.30.0050.00321.10
8.2.20.0000.00817.82
8.2.10.0040.00417.98
8.2.00.0040.00417.98
8.1.300.0050.00518.19
8.1.290.0030.00630.84
8.1.280.0110.00725.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0100.00019.65
8.1.230.0060.00617.83
8.1.220.0000.00917.74
8.1.210.0040.00418.77
8.1.200.0030.00617.25
8.1.190.0000.00817.11
8.1.180.0030.00518.10
8.1.170.0080.00018.48
8.1.160.0000.00722.18
8.1.150.0030.00520.69
8.1.140.0000.00719.55
8.1.130.0070.00017.56
8.1.120.0000.00717.45
8.1.110.0040.00417.43
8.1.100.0000.00717.40
8.1.90.0090.00017.41
8.1.80.0070.00017.37
8.1.70.0000.00717.45
8.1.60.0040.00417.59
8.1.50.0030.00517.52
8.1.40.0000.00817.47
8.1.30.0000.00817.65
8.1.20.0050.00317.70
8.1.10.0000.00817.57
8.1.00.0030.00617.48
8.0.300.0000.00718.77
8.0.290.0000.00716.63
8.0.280.0070.00018.47
8.0.270.0000.00817.25
8.0.260.0000.00617.24
8.0.250.0040.00416.97
8.0.240.0000.00816.95
8.0.230.0060.00316.95
8.0.220.0070.00016.89
8.0.210.0030.00316.74
8.0.200.0050.00316.91
8.0.190.0000.00716.96
8.0.180.0070.00016.88
8.0.170.0040.00416.81
8.0.160.0070.00016.86
8.0.150.0070.00016.85
8.0.140.0020.00516.71
8.0.130.0050.00013.37
8.0.120.0040.00416.90
8.0.110.0080.00016.91
8.0.100.0000.00816.91
8.0.90.0050.00216.84
8.0.80.0030.01316.85
8.0.70.0000.00716.67
8.0.60.0040.00416.90
8.0.50.0050.00316.90
8.0.30.0100.00517.09
8.0.20.0150.00517.40
8.0.10.0050.00217.02
8.0.00.0080.01116.59
7.4.330.0000.00615.08
7.4.320.0000.00616.45
7.4.300.0000.00616.54
7.4.290.0030.00516.43
7.4.280.0070.00016.46
7.4.270.0040.00416.55
7.4.260.0000.00816.46
7.4.250.0000.00716.54
7.4.240.0030.00316.60
7.4.230.0070.00016.59
7.4.220.0080.01116.54
7.4.210.0100.00616.67
7.4.200.0030.00316.61
7.4.160.0080.01016.55
7.4.150.0130.00917.40
7.4.140.0110.01017.86
7.4.130.0110.00716.48
7.4.120.0110.00616.42
7.4.110.0130.00616.49
7.4.100.0140.00716.46
7.4.90.0070.01016.34
7.4.80.0120.01319.39
7.4.70.0160.00016.46
7.4.60.0130.00316.25
7.4.50.0060.00316.36
7.4.40.0070.01316.60
7.4.30.0060.01016.61
7.4.00.0100.00715.17
7.3.330.0060.00013.09
7.3.320.0060.00013.07
7.3.310.0040.00416.32
7.3.300.0030.00316.11
7.3.290.0050.01116.20
7.3.280.0090.00916.22
7.3.270.0090.00917.40
7.3.260.0080.01016.30
7.3.250.0120.00616.21
7.3.240.0090.00816.44
7.3.230.0070.01016.39
7.3.210.0070.01016.23
7.3.200.0030.01316.24
7.3.190.0070.01016.59
7.3.180.0040.01316.38
7.3.170.0070.01016.32
7.3.160.0160.00316.25
7.2.330.0060.01216.51
7.2.320.0060.01016.38
7.2.310.0130.00916.78
7.2.300.0070.01116.68
7.2.290.0030.01916.55
7.2.60.0060.00617.09
7.1.200.0000.00915.79
7.1.70.0030.01317.19
7.1.60.0000.01419.75
7.1.00.0070.07322.36
7.0.200.0050.00216.73
7.0.90.1470.00020.05
7.0.80.1370.00019.84
7.0.70.0700.00020.18
7.0.60.0870.00020.01
7.0.50.1370.00020.33
7.0.40.1400.00020.39
7.0.30.1430.00020.32
7.0.20.1430.00020.36
7.0.10.1530.00020.43
7.0.00.1470.00020.35
5.6.240.0770.00020.50
5.6.230.0730.00020.63
5.6.220.0700.00020.80
5.6.210.0730.00020.73
5.6.200.0700.00021.05
5.6.190.0730.00021.07
5.6.180.0670.00021.09
5.6.170.0670.00021.12
5.6.160.0700.00021.07
5.6.150.0730.00021.11
5.6.140.0800.00021.07
5.6.130.0730.00021.01
5.6.120.0800.00021.09
5.6.110.0930.00021.09
5.6.100.0730.00021.06
5.6.90.0730.00021.06
5.6.80.0700.00020.47
5.6.70.0800.00020.45
5.6.60.0630.00020.48
5.6.50.0600.00020.45
5.6.40.0630.00020.52
5.6.30.0600.00020.46
5.6.20.0670.00020.41
5.6.10.0630.00020.41
5.6.00.0700.00020.42

preferences:
39.33 ms | 403 KiB | 5 Q