3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo_exported = var_export(array(2 => TRUE), TRUE); $foo_string = 'Array(2 => TRUE)'; $bar = array(); $baz = 'baz'; eval('$bar[$baz]["exported"] = $foo_exported;'); eval('$bar[$baz]["string"] = $foo_string;'); print_r($bar);

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.0120.00316.75
8.3.50.0030.01322.05
8.3.40.0070.01018.66
8.3.30.0120.00619.24
8.3.20.0040.00420.39
8.3.10.0100.00321.94
8.3.00.0040.00418.04
8.2.180.0110.01116.75
8.2.170.0060.00922.96
8.2.160.0070.00720.57
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00421.09
8.2.110.0060.00320.86
8.2.100.0070.00417.84
8.2.90.0040.00417.98
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0060.00317.93
8.2.50.0080.00018.07
8.2.40.0000.00918.34
8.2.30.0080.00318.27
8.2.20.0000.00717.72
8.2.10.0080.00018.04
8.2.00.0050.00217.74
8.1.280.0180.00325.92
8.1.270.0090.00023.82
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00821.97
8.1.230.0070.00420.87
8.1.220.0040.00417.74
8.1.210.0040.00418.97
8.1.200.0030.01017.35
8.1.190.0050.00317.10
8.1.180.0080.00018.10
8.1.170.0040.00418.68
8.1.160.0020.00521.91
8.1.150.0040.00418.81
8.1.140.0000.00717.36
8.1.130.0030.00317.91
8.1.120.0030.00317.36
8.1.110.0040.00417.42
8.1.100.0000.00817.45
8.1.90.0040.00317.28
8.1.80.0000.00817.45
8.1.70.0000.00717.46
8.1.60.0040.00417.47
8.1.50.0030.00617.36
8.1.40.0070.00017.43
8.1.30.0050.00317.60
8.1.20.0000.00917.67
8.1.10.0050.00217.54
8.1.00.0020.00517.39
8.0.300.0070.00020.05
8.0.290.0020.00516.75
8.0.280.0030.00318.45
8.0.270.0070.00017.25
8.0.260.0030.00317.21
8.0.250.0030.00316.96
8.0.240.0050.00216.95
8.0.230.0030.00316.85
8.0.220.0030.00516.88
8.0.210.0050.00316.89
8.0.200.0040.00416.96
8.0.190.0090.00016.97
8.0.180.0040.00416.82
8.0.170.0070.00016.96
8.0.160.0000.00716.89
8.0.150.0000.00816.74
8.0.140.0030.00316.86
8.0.130.0050.00013.28
8.0.120.0000.00816.75
8.0.110.0020.00516.79
8.0.100.0050.00216.86
8.0.90.0040.00416.86
8.0.80.0110.00416.86
8.0.70.0030.00316.79
8.0.60.0070.00016.76
8.0.50.0040.00416.92
8.0.30.0110.00917.03
8.0.20.0110.00817.40
8.0.10.0040.00416.99
8.0.00.0130.00516.99
7.4.330.0050.00015.15
7.4.320.0000.00616.51
7.4.300.0070.00016.65
7.4.290.0030.00316.59
7.4.280.0060.00316.50
7.4.270.0000.00716.53
7.4.260.0040.00416.63
7.4.250.0000.00816.46
7.4.240.0050.00316.48
7.4.230.0000.00716.32
7.4.220.0160.00316.44
7.4.210.0100.00716.57
7.4.200.0040.00416.53
7.4.160.0110.00616.56
7.4.150.0070.01517.40
7.4.140.0100.00717.86
7.4.130.0110.00616.43
7.4.120.0120.00516.52
7.4.110.0060.01316.71
7.4.100.0150.00316.55
7.4.90.0070.01016.70
7.4.80.0100.01319.39
7.4.70.0120.00616.50
7.4.60.0090.00616.58
7.4.50.0030.00516.53
7.4.40.0060.01016.33
7.4.30.0130.00316.38
7.4.00.0040.01114.85
7.3.330.0040.00313.04
7.3.320.0050.00012.93
7.3.310.0030.00316.26
7.3.300.0000.00616.07
7.3.290.0060.01016.19
7.3.280.0060.01116.18
7.3.270.0160.00817.40
7.3.260.0070.01016.30
7.3.250.0110.00616.56
7.3.240.0140.00716.46
7.3.230.0140.00316.39
7.3.210.0130.00316.50
7.3.200.0080.00819.39
7.3.190.0090.01216.50
7.3.180.0110.00416.25
7.3.170.0110.01216.28
7.3.160.0070.01016.50
7.3.120.0060.00614.71
7.3.10.0040.01116.71
7.3.00.0060.00616.73
7.2.330.0030.01316.43
7.2.320.0090.00916.82
7.2.310.0080.01516.72
7.2.300.0120.00616.78
7.2.290.0150.00616.70
7.2.130.0060.00916.95
7.2.120.0030.01216.91
7.2.110.0040.01116.93
7.2.100.0030.01416.75
7.2.90.0070.00716.98
7.2.80.0080.00317.10
7.2.70.0030.00917.01
7.2.60.0080.00516.91
7.2.50.0090.00616.88
7.2.40.0080.00616.72
7.2.30.0090.00616.90
7.2.20.0000.01516.70
7.2.10.0000.01016.72
7.2.00.0020.01318.18
7.1.250.0030.00715.91
7.1.200.0090.00315.93
7.1.100.0070.00717.95
7.1.70.0000.00917.16
7.1.60.0090.01519.70
7.1.50.0030.01716.85
7.1.00.0000.08022.28
7.0.200.0000.00716.76
7.0.140.0000.07721.95
7.0.60.0000.04719.88
7.0.50.0070.08717.82
7.0.40.0030.04319.91
7.0.30.0270.07020.17
7.0.20.0270.08020.18
7.0.10.0070.04020.00
7.0.00.0070.08720.13
5.6.280.0070.07020.90
5.6.210.0000.04720.47
5.6.200.0030.05018.12
5.6.190.0130.05020.45
5.6.180.0300.06020.59
5.6.170.0270.04020.37
5.6.160.0130.08020.38
5.6.150.0030.04018.16
5.6.140.0070.08018.21
5.6.130.0070.04018.17
5.6.120.0130.07720.97
5.6.110.0030.08720.95
5.6.100.0100.04021.12
5.6.90.0170.05320.98
5.6.80.0000.05720.41
5.5.350.0200.03020.44
5.5.340.0130.07318.00
5.5.330.0170.06720.13
5.5.320.0300.06320.26
5.5.310.0330.08020.20
5.5.300.0070.08317.91
5.5.290.0070.09317.97
5.5.280.0070.04320.84
5.5.270.0100.08020.80
5.5.260.0030.09020.67
5.5.250.0000.04320.57
5.5.240.0070.07320.17
5.4.450.0470.07719.41
5.4.440.0400.06319.31
5.4.430.0330.05019.18
5.4.420.0330.05319.33
5.4.410.0500.05719.16
5.4.400.0470.05718.86
5.4.390.0270.06718.86
5.4.380.0400.05719.06
5.4.370.0430.05319.11
5.4.360.0570.04718.93
5.4.350.0400.07718.86
5.4.340.0470.06319.07
5.4.320.0330.05718.86
5.4.310.0330.07319.08
5.4.300.0300.03719.07
5.4.290.0300.05319.01
5.4.280.0330.06318.98
5.4.270.0400.04318.91
5.4.260.0270.04018.98
5.4.250.0230.04019.09
5.4.240.0470.04719.02
5.4.230.0330.06019.05
5.4.220.0530.05018.80
5.4.210.0470.06018.95
5.4.200.0470.06018.85
5.4.190.0400.04319.02
5.4.180.0430.06319.02
5.4.170.0370.05718.77
5.4.160.0400.05318.96
5.4.150.0300.07319.06
5.4.140.0430.05316.29
5.4.130.0330.04716.24
5.4.120.0270.05016.54
5.4.110.0300.03716.38
5.4.100.0370.04716.30
5.4.90.0270.04016.38
5.4.80.0270.06716.34
5.4.70.0370.05016.32
5.4.60.0370.03716.46
5.4.50.0370.07016.18
5.4.40.0370.06716.37
5.4.30.0330.03716.36
5.4.20.0530.05016.36
5.4.10.0370.03716.37
5.4.00.0370.04315.69
5.3.290.0270.05314.50
5.3.280.0330.06314.69
5.3.270.0400.06714.45
5.3.260.0570.04014.45
5.3.250.0400.06714.45
5.3.240.0400.06714.49
5.3.230.0270.04714.44
5.3.220.0400.04314.41
5.3.210.0370.05314.41
5.3.200.0300.05014.42
5.3.190.0370.03714.52
5.3.180.0430.06014.52
5.3.170.0400.05014.51
5.3.160.0400.04014.51
5.3.150.0400.07014.41
5.3.140.0330.04314.60
5.3.130.0300.05014.38
5.3.120.0370.05714.39
5.3.110.0330.05014.40
5.3.100.0370.07014.09
5.3.90.0370.04713.93
5.3.80.0300.04013.82
5.3.70.0300.07013.82
5.3.60.0330.03313.96
5.3.50.0270.04013.78
5.3.40.0270.04313.80
5.3.30.0230.07013.86
5.3.20.0400.07013.79
5.3.10.0300.06313.64
5.3.00.0300.05013.62
5.2.170.0300.06311.05
5.2.160.0200.03711.00
5.2.150.0200.06010.99
5.2.140.0270.05710.99
5.2.130.0300.05311.00
5.2.120.0300.04710.95
5.2.110.0330.05710.96
5.2.100.0400.04310.96
5.2.90.0300.05311.27
5.2.80.0330.04710.94
5.2.70.0270.05710.95
5.2.60.0200.03011.08
5.2.50.0230.04710.91
5.2.40.0230.03010.85
5.2.30.0130.03311.02
5.2.20.0170.03310.80
5.2.10.0270.05010.84
5.2.00.0230.03710.80
5.1.60.0300.0479.87
5.1.50.0200.03310.07
5.1.40.0200.0479.91
5.1.30.0170.03710.29
5.1.20.0200.02710.50
5.1.10.0230.02310.05
5.1.00.0130.03010.22
5.0.50.0070.0478.48
5.0.40.0130.0238.39
5.0.30.0130.0508.45
5.0.20.0170.0338.09
5.0.10.0100.0238.23
5.0.00.0130.0378.09
4.4.90.0100.0177.50
4.4.80.0100.0237.50
4.4.70.0070.0177.50
4.4.60.0100.0177.50
4.4.50.0100.0137.50
4.4.40.0170.0337.50
4.4.30.0100.0177.50
4.4.20.0130.0377.50
4.4.10.0130.0177.50
4.4.00.0170.0437.50
4.3.110.0100.0237.50
4.3.100.0200.0307.50
4.3.90.0170.0137.50
4.3.80.0100.0337.50
4.3.70.0170.0237.50
4.3.60.0070.0237.50
4.3.50.0130.0307.50
4.3.40.0170.0407.50
4.3.30.0070.0337.50
4.3.20.0070.0337.50
4.3.10.0130.0277.50
4.3.00.0030.0307.50

preferences:
41.74 ms | 401 KiB | 5 Q