3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ThisIsAwful { public static function is($val) { define(get_called_class(), $val); } } spl_autoload_register(function($class) { eval("class $class extends ThisIsAwful {}"); }, true, true); class Test{ public function foo(){echo 'bar';} } You::is(new Test); You();

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.0070.00718.27
8.3.50.0130.00422.00
8.3.40.0120.00318.59
8.3.30.0110.00419.09
8.3.20.0070.00020.31
8.3.10.0040.00423.46
8.3.00.0040.00419.06
8.2.180.0160.00018.29
8.2.170.0060.01222.96
8.2.160.0140.00020.41
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00422.08
8.2.110.0090.00022.24
8.2.100.0120.00017.91
8.2.90.0040.00419.23
8.2.80.0050.00317.97
8.2.70.0040.00417.63
8.2.60.0040.00417.91
8.2.50.0040.00418.07
8.2.40.0030.00519.88
8.2.30.0000.00718.20
8.2.20.0000.00817.62
8.2.10.0080.00017.94
8.2.00.0040.00417.81
8.1.280.0220.00025.92
8.1.270.0000.00923.90
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0030.00623.73
8.1.230.0070.00319.02
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0020.00716.88
8.1.180.0050.00319.01
8.1.170.0030.00518.44
8.1.160.0000.00822.06
8.1.150.0040.00418.49
8.1.140.0000.00817.43
8.1.130.0070.00017.68
8.1.120.0000.00717.41
8.1.110.0030.00617.32
8.1.100.0000.00717.36
8.1.90.0000.00717.33
8.1.80.0030.00517.41
8.1.70.0030.00317.34
8.1.60.0040.00417.40
8.1.50.0000.00817.31
8.1.40.0040.00417.42
8.1.30.0000.00817.48
8.1.20.0030.00517.50
8.1.10.0030.00617.37
8.1.00.0040.00417.30
8.0.300.0040.00418.77
8.0.290.0040.00417.18
8.0.280.0070.00018.46
8.0.270.0080.00017.23
8.0.260.0030.00317.20
8.0.250.0030.00317.05
8.0.240.0020.00517.07
8.0.230.0000.00816.96
8.0.220.0040.00416.94
8.0.210.0000.00716.88
8.0.200.0000.00616.90
8.0.190.0000.00716.96
8.0.180.0050.00317.02
8.0.170.0040.00417.03
8.0.160.0070.00016.85
8.0.150.0040.00416.82
8.0.140.0030.00316.97
8.0.130.0030.00313.38
8.0.120.0080.00016.93
8.0.110.0040.00416.92
8.0.100.0000.00816.93
8.0.90.0000.00816.86
8.0.80.0090.00816.85
8.0.70.0000.00717.01
8.0.60.0040.00416.93
8.0.50.0020.00516.98
8.0.30.0110.00817.14
8.0.20.0060.01217.40
8.0.10.0000.00817.06
8.0.00.0090.01016.88
7.4.330.0000.00515.00
7.4.320.0000.00616.51
7.4.300.0000.00616.65
7.4.290.0030.00516.61
7.4.280.0000.00816.52
7.4.270.0000.00716.62
7.4.260.0070.00016.63
7.4.250.0000.00816.55
7.4.240.0040.00316.54
7.4.230.0030.00316.68
7.4.220.0120.00816.65
7.4.210.0090.00916.58
7.4.200.0040.00316.68
7.4.190.0070.00016.78
7.4.160.0090.00616.57
7.4.150.0140.00317.40
7.4.140.0080.01217.86
7.4.130.0110.00816.56
7.4.120.0110.00816.57
7.4.110.0100.00716.48
7.4.100.0100.01316.66
7.4.90.0030.01316.41
7.4.80.0080.01119.39
7.4.70.0120.00616.55
7.4.60.0140.00316.28
7.4.50.0080.00016.65
7.4.40.0100.00616.55
7.4.30.0030.01316.60
7.4.00.0070.00715.23
7.3.330.0000.00513.41
7.3.320.0020.00213.43
7.3.310.0070.00016.23
7.3.300.0030.00316.29
7.3.290.0100.01016.51
7.3.280.0090.00916.43
7.3.270.0110.00717.40
7.3.260.0090.00916.59
7.3.250.0080.00816.54
7.3.240.0060.01116.54
7.3.230.0100.00616.39
7.3.210.0110.00716.38
7.3.200.0150.02819.39
7.3.190.0060.01316.53
7.3.180.0060.01316.36
7.3.170.0070.01316.62
7.3.160.0040.01816.66
7.3.120.0130.00014.84
7.3.10.0080.00316.42
7.3.00.0080.00516.74
7.2.330.0080.00816.70
7.2.320.0070.01116.61
7.2.310.0100.00716.66
7.2.300.0080.01516.71
7.2.290.0160.00816.76
7.2.130.0040.01116.96
7.2.120.0060.00716.95
7.2.110.0090.00616.87
7.2.100.0050.00816.73
7.2.90.0030.01417.03
7.2.80.0110.00616.81
7.2.70.0050.01117.02
7.2.60.0090.00516.83
7.2.50.0100.00717.01
7.2.40.0060.00716.92
7.2.30.0020.01217.08
7.2.20.0080.00516.99
7.2.10.0040.01016.92
7.2.00.0060.01017.84
7.1.250.0000.01115.92
7.1.200.0060.00615.66
7.1.70.0040.00417.11
7.1.60.0130.00317.32
7.1.50.0100.00717.02
7.1.00.0070.07322.51
7.0.200.0000.01416.62
7.0.140.0000.07321.96
7.0.60.0070.07719.78
7.0.50.0100.07017.87
7.0.40.0070.04020.02
7.0.30.0270.08720.22
7.0.20.0270.07320.25
7.0.10.0100.08720.23
7.0.00.0100.08320.30
5.6.280.0000.07721.02
5.6.210.0070.08320.77
5.6.200.0070.04318.14
5.6.190.0130.08320.66
5.6.180.0070.08020.50
5.6.170.0330.08320.48
5.6.160.0030.05720.54
5.6.150.0070.08318.15
5.6.140.0130.05318.29
5.6.130.0000.08718.18
5.6.120.0030.07320.99
5.6.110.0070.05721.05
5.6.100.0030.08720.98
5.6.90.0100.06320.89
5.6.80.0000.04320.39
5.5.350.0000.08320.34
5.5.340.0070.04317.96
5.5.330.0070.04320.43
5.5.320.0200.04020.20
5.5.310.0270.08320.37
5.5.300.0030.06318.01
5.5.290.0230.06317.94
5.5.280.0000.08320.84
5.5.270.0070.04020.97
5.5.260.0030.09020.88
5.5.250.0070.07320.70
5.5.240.0070.07320.13
5.4.450.0500.05719.56
5.4.440.0700.05719.63
5.4.430.1000.07019.33
5.4.420.1130.05719.21
5.4.410.1030.05319.42
5.4.400.1130.08318.98
5.4.390.1270.04019.20
5.4.380.0200.05318.61
5.4.370.0130.05318.70
5.4.360.0200.06718.79
5.4.350.0070.05718.48
5.4.340.0100.05718.48
5.4.320.0080.03412.51
5.4.310.0210.06512.51
5.4.300.0090.03512.51
5.4.290.0090.04912.50
5.4.280.0160.04912.40
5.4.270.0150.05012.39
5.4.260.0210.08412.40
5.4.250.0090.07212.40
5.4.240.0180.08312.40
5.4.230.0170.07912.39
5.4.220.0120.06212.39
5.4.210.0100.06112.39
5.4.200.0280.07412.39
5.4.190.0100.05812.39
5.4.180.0190.07412.39
5.4.170.0060.04812.40
5.4.160.0080.03812.39
5.4.150.0100.05012.39
5.4.140.0090.03812.08
5.4.130.0060.04012.06
5.4.120.0090.04212.02
5.4.110.0090.03612.02
5.4.100.0070.04212.02
5.4.90.0170.05612.02
5.4.80.0130.03912.02
5.4.70.0080.03812.02
5.4.60.0120.03612.01
5.4.50.0260.07012.01
5.4.40.0200.05512.00
5.4.30.0180.06412.00
5.4.20.0110.03812.00
5.4.10.0160.05812.00
5.4.00.0140.07311.49
5.3.290.0080.03912.80
5.3.280.0240.07112.71
5.3.270.0420.06512.72
5.3.260.0120.07512.72
5.3.250.0140.05412.72
5.3.240.0170.06112.72
5.3.230.0180.05712.71
5.3.220.0080.05412.68
5.3.210.0080.06512.68
5.3.200.0070.06412.68
5.3.190.0220.08512.68
5.3.180.0170.07312.67
5.3.170.0170.06812.67
5.3.160.0250.06212.67
5.3.150.0140.04812.68
5.3.140.0110.04912.66
5.3.130.0100.05712.66
5.3.120.0130.10412.66
5.3.110.0380.09912.66
5.3.100.0090.03712.13
5.3.90.0100.05212.11
5.3.80.0140.04712.10
5.3.70.0120.04412.10
5.3.60.0060.04412.09
5.3.50.0060.04112.04
5.3.40.0100.03512.04
5.3.30.0060.04111.99
5.3.20.0090.04611.78
5.3.10.0070.03711.74
5.3.00.0100.03611.72
5.2.170.0060.0339.22
5.2.160.0040.0339.22
5.2.150.0090.0459.22
5.2.140.0080.0369.22
5.2.130.0110.0499.18
5.2.120.0100.0439.18
5.2.110.0070.0439.19
5.2.100.0100.0519.18
5.2.90.0120.0559.18
5.2.80.0180.0879.17
5.2.70.0070.0439.18
5.2.60.0130.0509.13
5.2.50.0040.0529.10
5.2.40.0120.0499.07
5.2.30.0120.0529.05
5.2.20.0090.0359.04
5.2.10.0050.0408.95
5.2.00.0080.0328.81
5.1.60.0070.0288.09
5.1.50.0150.0628.09
5.1.40.0080.0348.06
5.1.30.0070.0298.42
5.1.20.0070.0388.45
5.1.10.0150.0468.16
5.1.00.0000.0388.16
5.0.50.0030.0306.64
5.0.40.0070.0236.50
5.0.30.0040.0716.31
5.0.20.0080.0266.28
5.0.10.0060.0286.26
5.0.00.0030.0426.25
4.4.90.0030.0174.78
4.4.80.0040.0204.76
4.4.70.0040.0224.76
4.4.60.0040.0214.75
4.4.50.0040.0264.77
4.4.40.0060.0274.71
4.4.30.0030.0184.76
4.4.20.0050.0164.85
4.4.10.0030.0184.85
4.4.00.0030.0274.75
4.3.110.0060.0154.67
4.3.100.0040.0164.66
4.3.90.0050.0184.64
4.3.80.0040.0264.58
4.3.70.0060.0144.63
4.3.60.0020.0194.63
4.3.50.0020.0204.63
4.3.40.0030.0264.53
4.3.30.0030.0183.30
4.3.20.0020.0233.28
4.3.10.0060.0403.24
4.3.00.0070.0237.32

preferences:
49.91 ms | 401 KiB | 5 Q