3v4l.org

run code in 300+ PHP versions simultaneously
<?php $gender = array ('boy', 'girl', 'trangender'); $shopping_data = array( 'boy' => array( 'accessory' => array('belt','wallet','watch'), 'age' => array(20,45,50) ), 'girl'=> array( 'accessory' => array('hair-clip','wallet','watch'), 'age' => array(30,40) ) ); foreach($gender as $gen){ if(isset($shopping_data[$gen])){ echo $gen .":\n"; foreach($shopping_data[$gen]["accessory"] as $acc){ echo $acc . "\n"; } echo "\n\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.5.00.0110.01020.06
8.4.150.0020.00014.05
8.4.140.0140.00717.68
8.4.130.0110.00917.48
8.4.120.0110.00922.38
8.4.110.0070.01118.98
8.4.100.0100.01022.34
8.4.90.0050.00520.40
8.4.80.0110.01019.40
8.4.70.0040.00417.98
8.4.60.0110.00618.91
8.4.50.0060.00418.90
8.4.40.0120.00419.47
8.4.30.0030.00617.71
8.4.20.0120.00320.53
8.4.10.0040.00417.79
8.3.270.0120.00716.48
8.3.260.0110.00516.65
8.3.250.0040.00421.00
8.3.240.0130.00816.70
8.3.230.0100.00516.54
8.3.220.0110.00717.34
8.3.210.0040.00316.47
8.3.200.0080.00116.75
8.3.190.0130.00617.09
8.3.180.0040.00316.80
8.3.170.0030.01220.55
8.3.160.0070.00018.82
8.3.150.0130.00616.41
8.3.140.0050.00220.64
8.3.130.0040.01116.63
8.3.120.0060.00318.75
8.3.110.0000.00816.38
8.3.100.0090.00516.42
8.3.90.0030.00626.77
8.3.80.0030.00618.30
8.3.70.0060.01216.58
8.3.60.0130.01016.36
8.3.50.0070.01118.15
8.3.40.0070.01018.59
8.3.30.0040.01118.79
8.3.20.0040.00419.12
8.3.10.0080.00021.86
8.3.00.0050.00219.11
8.2.290.0100.00820.50
8.2.280.0120.00618.12
8.2.270.0130.00618.84
8.2.260.0070.01018.59
8.2.250.0000.00916.89
8.2.240.0090.00017.26
8.2.230.0090.00020.94
8.2.220.0080.00037.54
8.2.210.0000.00826.77
8.2.200.0050.00518.41
8.2.190.0110.00318.29
8.2.180.0000.01425.92
8.2.170.0100.01022.96
8.2.160.0070.00722.18
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0040.00426.16
8.2.110.0060.00321.00
8.2.100.0040.00719.63
8.2.90.0050.00318.03
8.2.80.0030.00618.04
8.2.70.0030.00617.80
8.2.60.0000.00818.24
8.2.50.0030.00518.10
8.2.40.0050.00319.32
8.2.30.0000.00819.19
8.2.20.0040.00417.98
8.2.10.0040.00417.93
8.2.00.0040.00419.45
8.1.330.0120.00721.98
8.1.320.0110.00816.02
8.1.310.0070.01018.56
8.1.300.0000.00918.38
8.1.290.0060.00330.84
8.1.280.0110.00325.92
8.1.270.0030.00523.99
8.1.260.0030.00626.35
8.1.250.0070.00028.09
8.1.240.0040.00423.96
8.1.230.0030.00822.74
8.1.220.0040.00417.74
8.1.210.0000.00918.99
8.1.200.0090.00017.35
8.1.190.0000.00817.25
8.1.180.0050.00318.10
8.1.170.0050.00318.52
8.1.160.0040.00418.99
8.1.150.0000.00918.94
8.1.140.0000.00722.20
8.1.130.0000.00720.20
8.1.120.0030.00317.51
8.1.110.0070.00017.42
8.1.100.0040.00417.48
8.1.90.0000.00817.36
8.1.80.0000.00717.36
8.1.70.0000.00717.47
8.1.60.0000.00717.59
8.1.50.0060.00317.50
8.1.40.0110.00017.53
8.1.30.0080.00017.67
8.1.20.0040.00417.53
8.1.10.0040.00417.55
8.1.00.0000.00817.53
8.0.300.0050.00219.84
8.0.290.0000.00716.75
8.0.280.0030.00318.36
8.0.270.0050.00217.22
8.0.260.0000.00718.33
8.0.250.0030.00316.87
8.0.240.0000.00616.91
8.0.230.0000.00716.89
8.0.220.0070.00016.92
8.0.210.0030.00316.91
8.0.200.0030.00316.99
8.0.190.0020.00516.96
8.0.180.0000.00816.90
8.0.170.0060.00316.95
8.0.160.0000.00716.94
8.0.150.0070.00016.79
8.0.140.0070.00016.75
8.0.130.0050.00013.31
8.0.120.0000.00716.87
8.0.110.0040.00416.70
8.0.100.0030.00516.85
8.0.90.0000.00716.82
8.0.80.0060.01316.81
8.0.70.0000.00717.01
8.0.60.0000.00816.77
8.0.50.0030.00516.93
8.0.30.0070.01116.78
8.0.20.0070.01117.40
8.0.10.0000.00716.84
8.0.00.0070.01216.78
7.4.330.0050.00015.55
7.4.320.0030.00316.52
7.4.300.0000.00616.58
7.4.290.0000.00716.64
7.4.280.0090.00016.56
7.4.270.0030.00316.61
7.4.260.0030.00316.58
7.4.250.0050.00316.56
7.4.240.0030.00316.63
7.4.230.0000.00716.67
7.4.220.0000.00816.45
7.4.210.0030.01316.57
7.4.200.0030.00316.48
7.4.160.0100.00616.49
7.4.140.0120.00817.86
7.4.130.0080.00916.63
7.4.120.0100.01116.46
7.4.110.0120.01216.42
7.4.100.0150.00316.68
7.4.90.0100.00716.50
7.4.80.0030.01419.39
7.4.70.0070.00716.55
7.4.60.0100.01016.54
7.4.50.0030.00916.14
7.4.40.0080.00816.53
7.4.10.0070.01414.89
7.4.00.0060.01214.82
7.3.330.0020.00213.14
7.3.320.0030.00313.04
7.3.310.0030.00316.40
7.3.300.0040.00416.21
7.3.290.0040.00416.31
7.3.280.0110.00316.32
7.3.260.0090.00816.51
7.3.240.0100.00816.42
7.3.230.0120.00616.43
7.3.210.0070.01016.27
7.3.200.0030.01316.52
7.3.190.0130.00316.43
7.3.180.0110.00516.49
7.3.170.0040.01916.48
7.3.160.0100.00716.62
7.3.130.0070.01114.82
7.3.120.0070.01214.64
7.3.110.0060.01314.96
7.3.100.0070.00914.82
7.3.90.0080.00514.84
7.3.80.0080.00715.04
7.3.70.0110.00514.75
7.3.60.0050.00714.73
7.3.50.0050.00614.78
7.3.40.0060.00614.79
7.3.30.0040.00914.88
7.3.20.0100.00516.67
7.3.10.0070.00716.68
7.3.00.0050.00816.61
7.2.330.0070.01116.43
7.2.320.0110.00716.69
7.2.310.0070.01016.51
7.2.300.0060.01616.73
7.2.290.0130.00316.68
7.2.260.0000.01514.96
7.2.250.0070.01215.01
7.2.240.0090.01014.96
7.2.230.0050.01015.06
7.2.220.0080.00814.95
7.2.210.0050.00915.13
7.2.200.0090.00715.01
7.2.190.0080.00515.00
7.2.180.0040.01015.24
7.2.170.0030.01314.92
7.2.160.0030.00615.05
7.2.150.0030.01017.20
7.2.140.0120.00317.13
7.2.130.0040.01216.98
7.2.120.0860.00915.60
7.2.110.0740.00815.61
7.2.100.0520.00115.80
7.2.90.0610.01115.98
7.2.80.0640.01315.81
7.2.70.0570.00715.90
7.2.60.0390.00815.96
7.2.50.0360.01415.92
7.2.40.0670.00916.12
7.2.30.0400.00816.06
7.2.20.0440.00916.06
7.2.10.0480.00716.01
7.2.00.0760.00815.87
7.1.330.0050.00815.97
7.1.320.0050.00815.83
7.1.310.0040.01115.60
7.1.300.0080.00515.76
7.1.290.0050.01015.73
7.1.280.0070.00515.85
7.1.270.0080.00715.84
7.1.260.0080.00815.79
7.1.250.0040.01215.47
7.1.240.0480.00914.48
7.1.230.0770.00614.70
7.1.220.1230.00714.72
7.1.210.0510.00314.88
7.1.200.0460.00414.83
7.1.190.0400.00514.79
7.1.180.0370.00714.65
7.1.170.0400.01014.66
7.1.160.0440.00414.82
7.1.150.0380.01014.76
7.1.140.0620.00314.77
7.1.130.0570.00914.78
7.1.120.0530.00814.81
7.1.110.0640.00614.94
7.1.100.0630.01014.72
7.1.90.0500.00814.62
7.1.80.0860.00814.62
7.1.70.0640.00814.86
7.1.60.0730.01214.83
7.1.50.0390.01214.63
7.1.40.0630.00614.47
7.1.30.0930.00514.84
7.1.20.0790.00514.73
7.1.10.0350.01014.79
7.1.00.0610.00514.95
7.0.330.0030.01415.26
7.0.320.0030.01015.57
7.0.310.0090.00315.45
7.0.300.0030.00915.57
7.0.290.0070.00615.41
7.0.280.0050.00515.46
7.0.270.0000.01115.50
7.0.260.0040.00815.48
7.0.250.0040.00715.45
7.0.240.0060.01015.45
7.0.230.0080.00315.57
7.0.220.0030.00615.41
7.0.210.0070.00315.52
7.0.200.0000.01415.64
7.0.190.0000.00915.62
7.0.180.0060.00615.26
7.0.170.0090.00015.32
7.0.160.0100.00715.15
7.0.150.0000.01215.21
7.0.140.0030.00915.39
7.0.130.0050.00515.49
7.0.120.0030.01315.30
7.0.110.0060.00915.42
7.0.100.0080.00815.41
7.0.90.0060.00915.23
7.0.80.0000.01315.34
7.0.70.0030.01015.29
7.0.60.0070.01015.54
7.0.50.0070.00715.55
7.0.40.0070.00713.52
7.0.30.0030.00713.53
7.0.20.0070.00313.49
7.0.10.0040.00813.37
7.0.00.0040.01113.61
5.6.400.0100.00714.58
5.6.390.0000.01214.59
5.6.380.0040.01314.64
5.6.370.0060.00614.40
5.6.360.0040.01114.19
5.6.350.0000.01314.32
5.6.340.0060.00914.32
5.6.330.0040.01114.36
5.6.320.0030.01314.35
5.6.310.0060.00614.36
5.6.300.0040.01114.59
5.6.290.0000.01214.30
5.6.280.0070.00714.80
5.6.270.0070.01114.44
5.6.260.0000.01314.50
5.6.250.0130.00414.21
5.6.240.0100.00314.53
5.6.230.0070.00714.41
5.6.220.0120.00314.39
5.6.210.0070.01014.36
5.6.200.0060.00914.48
5.6.190.0030.00614.50
5.6.180.0070.00314.30
5.6.170.0040.00714.20
5.6.160.0100.00414.25
5.6.150.0060.00614.08
5.6.140.0030.01014.09
5.6.130.0090.00614.30
5.6.120.0030.00614.27
5.6.110.0040.00414.51
5.6.100.0000.01014.51
5.6.90.0070.00314.45
5.6.80.0100.00314.45
5.6.70.0070.00714.42
5.6.60.0040.01114.32
5.6.50.0000.01414.30
5.6.40.0060.01014.25
5.6.30.0000.00914.41
5.6.20.0070.00714.29
5.6.10.0030.01014.61
5.6.00.0000.01114.42

preferences:
45.31 ms | 406 KiB | 6 Q