3v4l.org

run code in 300+ PHP versions simultaneously
<?php $nonfatal = array( E_USER_WARNING => true, E_WARNING => true, E_USER_NOTICE => true, E_NOTICE => true, E_STRICT => true, ); if ( version_compare( PHP_VERSION, '5.3.0' ) >= 0 ) { // wrapper `constant( 'XXX' )` is used to avoid compile notices // on earlier PHP versions. $nonfatal[constant( 'E_DEPRECATED' )] = true; $nonfatal[constant( 'E_USER_DEPRECATED') ] = true; }

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.40.0140.00318.84
8.3.30.0100.00319.04
8.3.20.0080.00020.20
8.3.10.0030.00522.09
8.3.00.0050.00220.54
8.2.170.0140.00022.96
8.2.160.0100.00319.21
8.2.150.0070.00724.18
8.2.140.0040.00424.66
8.2.130.0120.00626.16
8.2.120.0040.00419.23
8.2.110.0050.00520.96
8.2.100.0090.00317.72
8.2.90.0000.00819.27
8.2.80.0040.00417.97
8.2.70.0040.00417.25
8.2.60.0060.00317.93
8.2.50.0040.00418.07
8.2.40.0000.00818.09
8.2.30.0040.00418.07
8.2.20.0090.00017.58
8.2.10.0030.00617.60
8.2.00.0000.00717.71
8.1.270.0030.00522.05
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0030.00623.88
8.1.230.0080.00422.80
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0080.00317.13
8.1.190.0030.00617.53
8.1.180.0040.00418.58
8.1.170.0040.00418.48
8.1.160.0070.00022.13
8.1.150.0040.00418.53
8.1.140.0030.00517.39
8.1.130.0050.00317.87
8.1.120.0030.00317.43
8.1.110.0030.00717.27
8.1.100.0000.00817.29
8.1.90.0040.00417.36
8.1.80.0030.00317.38
8.1.70.0000.00717.42
8.1.60.0050.00317.41
8.1.50.0000.00717.36
8.1.40.0080.00017.34
8.1.30.0040.00417.47
8.1.20.0040.00417.63
8.1.10.0000.00817.51
8.1.00.0000.00917.41
8.0.300.0040.00418.77
8.0.290.0070.00017.30
8.0.280.0030.00318.38
8.0.270.0040.00417.20
8.0.260.0030.00316.76
8.0.250.0000.00716.81
8.0.240.0080.00016.90
8.0.230.0050.00216.95
8.0.220.0040.00416.80
8.0.210.0030.00316.77
8.0.200.0000.00616.90
8.0.190.0000.00816.82
8.0.180.0040.00416.77
8.0.170.0060.00316.72
8.0.160.0040.00416.70
8.0.150.0030.00316.75
8.0.140.0030.00516.69
8.0.130.0000.00513.29
8.0.120.0040.00416.86
8.0.110.0040.00416.71
8.0.100.0050.00216.84
8.0.90.0000.00716.93
8.0.80.0090.01416.82
8.0.70.0080.00016.75
8.0.60.0040.00416.85
8.0.50.0000.00716.77
8.0.30.0100.00916.88
8.0.20.0100.00817.40
8.0.10.0080.00016.75
8.0.00.0140.00916.55
7.4.330.0020.00215.00
7.4.320.0050.00216.59
7.4.300.0030.00316.43
7.4.290.0000.00716.53
7.4.280.0030.00316.53
7.4.270.0060.00016.55
7.4.260.0040.00416.45
7.4.250.0040.00416.51
7.4.240.0030.00316.36
7.4.230.0040.00416.28
7.4.220.0090.01216.57
7.4.210.0080.00916.56
7.4.200.0040.00416.55
7.4.190.0000.00716.40
7.4.160.0000.01516.62
7.4.150.0140.00317.40
7.4.140.0060.01117.86
7.4.130.0060.01216.44
7.4.120.0090.01216.42
7.4.110.0030.01316.49
7.4.100.0140.00316.60
7.4.90.0110.00516.42
7.4.80.0100.00619.39
7.4.70.0030.01316.33
7.4.60.0080.00816.48
7.4.50.0080.00016.38
7.4.40.0040.01122.77
7.4.30.0060.01116.38
7.4.00.0070.01014.82
7.3.330.0000.00513.14
7.3.320.0030.00212.99
7.3.310.0000.00716.41
7.3.300.0030.00316.29
7.3.290.0070.01016.21
7.3.280.0080.00816.31
7.3.270.0100.00717.40
7.3.260.0060.01816.68
7.3.250.0080.01316.40
7.3.240.0140.00716.57
7.3.230.0120.00616.53
7.3.210.0100.00716.43
7.3.200.0130.00819.39
7.3.190.0160.00716.41
7.3.180.0060.00916.47
7.3.170.0070.01116.63
7.3.160.0070.01416.60
7.3.120.0080.00314.68
7.2.330.0110.00716.46
7.2.320.0140.00716.56
7.2.310.0070.01016.45
7.2.300.0120.00316.32
7.2.290.0040.01216.61
7.1.70.0040.00417.13
7.1.60.0110.01419.82
7.1.50.0120.00617.00
7.1.00.0030.03322.48
7.0.200.0040.00416.40
7.0.140.0030.07321.91
7.0.70.4070.04319.90
7.0.60.0030.08020.02
7.0.50.0100.08017.81
7.0.40.0200.06720.06
7.0.30.0170.09020.20
7.0.20.0370.06720.30
7.0.10.0270.08320.19
7.0.00.0130.03020.33
5.6.280.0030.07320.91
5.6.210.0030.08020.65
5.6.200.0070.03718.22
5.6.190.0030.09020.62
5.6.180.0370.07320.37
5.6.170.0430.07020.51
5.6.160.0030.09020.32
5.6.150.0000.08318.12
5.6.140.0130.04718.16
5.6.130.0070.06718.22
5.6.120.0130.03321.11
5.6.110.0100.06321.08
5.6.100.0000.04720.95
5.6.90.0130.05720.98
5.6.80.0070.04720.38
5.6.70.0200.07320.51
5.5.350.0130.06320.30
5.5.340.0070.03717.95
5.5.330.0070.05720.40
5.5.320.0100.05020.57
5.5.310.0300.05320.29
5.5.300.0100.07317.93
5.5.290.0100.08017.96
5.5.280.0000.06320.87
5.5.270.0030.07720.64
5.5.260.0100.08720.86
5.5.250.0230.06320.65
5.5.240.0170.03720.26
5.4.450.0670.04019.58
5.4.440.0130.05319.47
5.4.430.0170.06019.27
5.4.420.1100.04719.33
5.4.410.0470.04719.48
5.4.400.0970.08019.15
5.4.390.1070.04019.25
5.4.380.0230.07018.68
5.4.370.0500.03318.46
5.4.360.0330.05018.56
5.4.350.0060.03711.98
5.4.340.0060.03711.97
5.4.320.0040.04412.45
5.4.310.0090.04212.45
5.4.300.0070.04012.45
5.4.290.0090.03512.45
5.4.280.0060.03412.35
5.4.270.0060.04212.35
5.4.260.0030.05318.72
5.4.250.0030.05718.72
5.4.240.0170.06319.03
5.4.230.0100.06718.92
5.4.220.0130.04718.64
5.4.210.0100.07718.72
5.4.200.0130.07318.93
5.4.190.0070.05018.89
5.4.180.0170.04018.64
5.4.170.0130.07018.83
5.4.160.0170.04718.89
5.4.150.0070.05718.71
5.4.140.0100.05016.27
5.4.130.0070.07016.29
5.4.120.0130.05016.41
5.4.110.0130.05016.26
5.4.100.0130.04016.40
5.4.90.0070.05016.23
5.4.80.0070.07316.21
5.4.70.0130.05316.43
5.4.60.0130.07016.45
5.4.50.0200.06016.46
5.4.40.0030.05316.41
5.4.30.0070.05716.31
5.4.20.0030.05716.46
5.4.10.0030.05316.30
5.4.00.0130.04015.71
5.3.290.0070.03812.80
5.3.280.0030.05314.60
5.3.270.0030.05714.60
5.3.260.0030.05714.61
5.3.250.0000.06014.60
5.3.240.0070.05314.46
5.3.230.0070.05714.37
5.3.220.0100.05314.42
5.3.210.0030.07314.61
5.3.200.0130.06014.43
5.3.190.0030.05714.42
5.3.180.0070.05014.58
5.3.170.0100.06314.66
5.3.160.0000.06014.26
5.3.150.0070.07314.71
5.3.140.0100.05014.57
5.3.130.0030.06014.64
5.3.120.0070.07014.70
5.3.110.0130.05314.55
5.3.100.0000.05314.08
5.3.90.0100.06013.93
5.3.80.0070.04714.03
5.3.70.0100.04714.02
5.3.60.0170.04014.01
5.3.50.0130.06313.99
5.3.40.0070.04713.94
5.3.30.0070.04713.75
5.3.20.0030.05313.57
5.3.10.0030.05013.48
5.3.00.0000.05313.55
5.2.170.0070.04011.05
5.2.160.0070.03711.05
5.2.150.0000.04310.97
5.2.140.0070.06310.97
5.2.130.0030.05711.11
5.2.120.0170.04311.11
5.2.110.0000.04310.86
5.2.100.0030.04010.93
5.2.90.0100.03711.10
5.2.80.0130.03311.01
5.2.70.0070.04711.01
5.2.60.0170.03710.88
5.2.50.0100.03710.78
5.2.40.0030.04010.89
5.2.30.0030.04010.98
5.2.20.0070.04010.79
5.2.10.0030.04010.87
5.2.00.0070.03710.87
5.1.60.0070.0309.77
5.1.50.0000.0379.88
5.1.40.0070.04310.01
5.1.30.0070.04310.41
5.1.20.0070.05010.35
5.1.10.0000.0409.92
5.1.00.0070.04310.11
5.0.50.0030.0378.47
5.0.40.0030.0308.45
5.0.30.0030.0408.11
5.0.20.0000.0308.38
5.0.10.0030.0338.00
5.0.00.0000.0607.98
4.4.90.0000.0337.15
4.4.80.0030.0207.15
4.4.70.0000.0237.15
4.4.60.0030.0277.15
4.4.50.0030.0207.15
4.4.40.0030.0337.15
4.4.30.0070.0277.15
4.4.20.0000.0237.15
4.4.10.0030.0277.15
4.4.00.0000.0337.15
4.3.110.0000.0237.15
4.3.100.0070.0137.15
4.3.90.0000.0207.15
4.3.80.0000.0337.15
4.3.70.0030.0207.15
4.3.60.0000.0207.15
4.3.50.0070.0177.15
4.3.40.0070.0377.15
4.3.30.0000.0237.15
4.3.20.0000.0237.15
4.3.10.0000.0237.15
4.3.00.0130.0207.02

preferences:
56.68 ms | 400 KiB | 5 Q