3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arra = array('one', 'two', 'five', 'seven'); $arrb = array('black', 'white', 'gold', 'silver'); $result = array_combine($arra, $arrb); foreach($result as $key=>$value){ ${$key} = $value; } echo $two; ?>

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.60.0110.01118.43
8.3.50.0100.00618.21
8.3.40.0120.00918.63
8.3.30.0070.00718.71
8.3.20.0040.00418.64
8.3.10.0000.00721.85
8.3.00.0060.00321.91
8.2.180.0070.01118.16
8.2.170.0180.00022.96
8.2.160.0000.01522.04
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0080.00021.00
8.2.110.0040.00419.14
8.2.100.0060.00617.91
8.2.90.0040.00417.75
8.2.80.0060.00317.97
8.2.70.0060.00318.04
8.2.60.0040.00418.22
8.2.50.0000.00818.10
8.2.40.0040.00419.13
8.2.30.0030.00420.55
8.2.20.0040.00418.12
8.2.10.0030.00518.15
8.2.00.0030.00519.39
8.1.280.0200.00025.92
8.1.270.0040.00420.24
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0000.01020.81
8.1.230.0040.00817.83
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.36
8.1.190.0060.00317.13
8.1.180.0110.00018.10
8.1.170.0000.00818.42
8.1.160.0040.00418.75
8.1.150.0050.00218.80
8.1.140.0040.00418.88
8.1.130.0030.00321.95
8.1.120.0000.00817.46
8.1.110.0080.00017.48
8.1.100.0040.00417.42
8.1.90.0080.00017.33
8.1.80.0060.00317.33
8.1.70.0000.00817.43
8.1.60.0000.00817.59
8.1.50.0050.00317.57
8.1.40.0060.00317.43
8.1.30.0050.00217.53
8.1.20.0000.00717.59
8.1.10.0000.01017.50
8.1.00.0030.00517.40
8.0.300.0030.00618.77
8.0.290.0040.00416.75
8.0.280.0030.00318.29
8.0.270.0050.00316.82
8.0.260.0000.00618.43
8.0.250.0070.00016.91
8.0.240.0090.00016.95
8.0.230.0000.00716.83
8.0.220.0050.00316.91
8.0.210.0030.00316.85
8.0.200.0070.00316.98
8.0.190.0040.00416.81
8.0.180.0000.00816.92
8.0.170.0030.00616.91
8.0.160.0080.00016.91
8.0.150.0040.00416.89
8.0.140.0040.00416.73
8.0.130.0050.00013.24
8.0.120.0040.00416.84
8.0.110.0080.00016.77
8.0.100.0040.00416.75
8.0.90.0070.00016.76
8.0.80.0100.00816.85
8.0.70.0070.00016.77
8.0.60.0000.00716.95
8.0.50.0050.00316.72
8.0.30.0080.01117.04
8.0.20.0090.00917.40
8.0.10.0000.00716.87
8.0.00.0090.01016.72
7.4.330.0000.00515.55
7.4.320.0060.00016.51
7.4.300.0050.00316.44
7.4.290.0000.00616.59
7.4.280.0000.00716.55
7.4.270.0000.00716.49
7.4.260.0030.00316.37
7.4.250.0070.00016.53
7.4.240.0000.00816.59
7.4.230.0050.00216.56
7.4.220.0000.00816.29
7.4.210.0080.00616.58
7.4.200.0000.00716.61
7.4.160.0090.00716.54
7.4.140.0120.01117.86
7.4.130.0090.01516.61
7.4.120.0100.01016.52
7.4.110.0080.01116.47
7.4.100.0170.00016.57
7.4.90.0090.01316.46
7.4.80.0090.01219.39
7.4.70.0100.01316.36
7.4.60.0070.01116.43
7.4.50.0070.01016.14
7.4.40.0070.01016.57
7.4.10.0060.01315.07
7.4.00.0110.00515.01
7.3.330.0050.00013.17
7.3.320.0000.00513.16
7.3.310.0030.00516.32
7.3.300.0030.00316.34
7.3.290.0070.00016.34
7.3.280.0070.00816.29
7.3.260.0160.00516.37
7.3.240.0060.01216.42
7.3.230.0100.00716.43
7.3.210.0070.01016.32
7.3.200.0030.01316.25
7.3.190.0060.00916.37
7.3.180.0090.00616.50
7.3.170.0000.01616.38
7.3.160.0130.00316.45
7.3.130.0160.00014.63
7.3.120.0000.01914.72
7.3.110.0000.01915.09
7.3.100.0030.01015.06
7.3.90.0070.01015.01
7.3.80.0100.00314.91
7.3.70.0110.00714.79
7.3.60.0060.00614.95
7.3.50.0120.00314.98
7.3.40.0100.00314.75
7.3.30.0070.01114.79
7.3.20.0000.01216.81
7.3.10.0040.01116.86
7.3.00.0030.01016.54
7.2.330.0070.01016.67
7.2.320.0100.01316.52
7.2.310.0070.01016.74
7.2.300.0060.00916.52
7.2.290.0110.00716.57
7.2.260.0170.00314.88
7.2.250.0110.00615.27
7.2.240.0030.00614.88
7.2.230.0110.00415.33
7.2.220.0000.01615.32
7.2.210.0100.00715.01
7.2.200.0030.01214.96
7.2.190.0000.01414.95
7.2.180.0030.01214.82
7.2.170.0090.00615.20
7.2.160.0060.01314.94
7.2.150.0130.00316.95
7.2.140.0110.00416.93
7.2.130.0070.00716.93
7.2.120.0040.01116.71
7.2.110.0000.01416.98
7.2.100.1060.01015.92
7.2.90.1210.00816.01
7.2.80.1090.00715.57
7.2.70.0930.00815.77
7.2.60.0920.01015.85
7.2.50.1070.00516.01
7.2.40.1320.01116.02
7.2.30.1260.01016.10
7.2.20.1310.00815.76
7.2.10.1240.01015.91
7.2.00.1070.00515.98
7.1.330.0070.00715.63
7.1.320.0000.01315.88
7.1.310.0060.00315.83
7.1.300.0000.01315.91
7.1.290.0030.00915.86
7.1.280.0040.01115.83
7.1.270.0040.01515.86
7.1.260.0040.01115.78
7.1.250.0100.00315.76
7.1.240.0030.01215.73
7.1.230.0120.00315.67
7.1.220.1230.00614.78
7.1.210.1020.00214.90
7.1.200.1230.01114.92
7.1.190.1200.01114.85
7.1.180.1080.00814.70
7.1.170.1140.01114.72
7.1.160.1390.00314.95
7.1.150.1390.00814.62
7.1.140.2030.00614.86
7.1.130.1510.00514.75
7.1.120.1190.01114.81
7.1.110.1180.00914.98
7.1.100.1390.00514.84
7.1.90.1420.01014.81
7.1.80.1420.00714.84
7.1.70.1820.01214.80
7.1.60.1910.00823.69
7.1.50.2610.00723.73
7.1.40.2370.00923.79
7.1.30.2550.00923.84
7.1.20.2420.00323.73
7.1.10.2480.00714.79
7.1.00.1660.00514.63
7.0.330.0090.00015.36
7.0.320.0090.00015.34
7.0.310.0060.00315.57
7.0.300.0060.00615.49
7.0.290.0000.01115.48
7.0.280.0040.01115.51
7.0.270.0040.00815.63
7.0.260.0030.01315.46
7.0.250.0070.00715.68
7.0.240.0070.00415.54
7.0.230.0030.01015.55
7.0.220.0000.01415.52
7.0.210.0060.00315.43
7.0.200.0040.00715.45
7.0.190.0090.00315.62
7.0.180.0000.01415.36
7.0.170.0050.00515.15
7.0.160.0070.00715.11
7.0.150.0030.01015.32
7.0.140.0100.00015.58
7.0.130.0090.00615.18
7.0.120.0030.01015.41
7.0.110.0000.01215.55
7.0.100.0100.00315.45
7.0.90.0030.01015.17
7.0.80.0000.00815.56
7.0.70.0070.00315.45
7.0.60.0070.00715.48
7.0.50.0100.00615.64
7.0.40.0000.01513.31
7.0.30.0070.00313.25
7.0.20.0030.01013.59
7.0.10.0070.00713.67
7.0.00.0030.01013.27
5.6.400.0090.00914.57
5.6.390.0040.00814.37
5.6.380.0080.00814.28
5.6.370.0040.01114.23
5.6.360.0060.00614.47
5.6.350.0000.01314.12
5.6.340.0110.00414.10
5.6.330.0120.00414.23
5.6.320.0030.01014.29
5.6.310.0070.00714.24
5.6.300.0040.00413.97
5.6.290.0100.00314.27
5.6.280.0030.01414.29
5.6.270.0000.01414.41
5.6.260.0080.00414.38
5.6.250.0000.01514.41
5.6.240.0060.00614.61
5.6.230.0040.01114.32
5.6.220.0070.00314.36
5.6.210.0100.00714.58
5.6.200.0000.01514.66
5.6.190.0060.01014.38
5.6.180.0000.01414.48
5.6.170.0060.00614.31
5.6.160.0100.00014.26
5.6.150.0070.00714.19
5.6.140.0000.00814.06
5.6.130.0040.00414.53
5.6.120.0080.00414.24
5.6.110.0030.00914.46
5.6.100.0000.01214.25
5.6.90.0100.00314.58
5.6.80.0000.01414.37
5.6.70.0030.01314.17
5.6.60.0000.01414.18
5.6.50.0040.01114.25
5.6.40.0060.00914.39
5.6.30.0040.01114.32
5.6.20.0070.00714.07
5.6.10.0000.01114.23
5.6.00.0040.01214.56

preferences:
43.82 ms | 400 KiB | 5 Q