3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Dog { public static function bark() { return 'Woof!'; } } echo Dog::bark()."\n"; // method is static, so this is ok class Cat { public function purr() // NOT static { return 'purrrrrrrrr'; } } echo Cat::purr()."\n"; // will generate deprecation warning $cat = new Cat(); echo $cat->purr()."\n"; // will work fine

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.00616.63
8.3.50.0110.00317.84
8.3.40.0070.00718.79
8.3.30.0110.00718.75
8.3.20.0040.00420.14
8.3.10.0000.00819.98
8.3.00.0000.00723.70
8.2.180.0210.00016.38
8.2.170.0100.00722.96
8.2.160.0070.00720.11
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0000.00822.30
8.2.120.0000.00726.35
8.2.110.0090.00020.93
8.2.100.0080.00417.77
8.2.90.0050.00319.11
8.2.80.0060.00317.97
8.2.70.0050.00317.50
8.2.60.0040.00418.03
8.2.50.0000.00819.21
8.2.40.0070.00020.56
8.2.30.0000.00720.55
8.2.20.0050.00318.07
8.2.10.0080.00018.06
8.2.00.0000.00918.24
8.1.280.0130.00725.92
8.1.270.0030.00623.78
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00021.29
8.1.230.0070.00417.70
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0040.00417.22
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0000.00818.46
8.1.160.0000.00818.77
8.1.150.0050.00320.18
8.1.140.0080.00019.52
8.1.130.0030.00518.89
8.1.120.0030.00517.44
8.1.110.0040.00417.38
8.1.100.0000.00817.38
8.1.90.0020.00517.43
8.1.80.0000.00817.38
8.1.70.0000.00717.29
8.1.60.0070.00017.42
8.1.50.0060.00317.41
8.1.40.0030.00517.46
8.1.30.0000.00817.55
8.1.20.0000.00817.41
8.1.10.0000.00817.57
8.1.00.0020.00517.46
8.0.300.0000.00818.77
8.0.290.0070.00016.75
8.0.280.0000.00718.36
8.0.270.0000.00817.15
8.0.260.0070.00017.37
8.0.250.0000.00716.90
8.0.240.0000.00716.95
8.0.230.0060.00316.94
8.0.220.0030.00316.94
8.0.210.0000.00716.95
8.0.200.0060.00016.99
8.0.190.0000.00717.02
8.0.180.0040.00416.96
8.0.170.0040.00317.02
8.0.160.0050.00216.92
8.0.150.0000.00716.96
8.0.140.0050.00316.90
8.0.130.0060.00013.32
8.0.120.0000.00716.96
8.0.110.0000.00717.02
8.0.100.0070.00016.99
8.0.90.0070.00017.03
8.0.80.0130.00717.02
8.0.70.0040.00416.81
8.0.60.0000.00816.96
8.0.50.0000.00716.94
8.0.30.0090.00717.14
8.0.20.0110.00917.40
8.0.10.0030.00516.94
8.0.00.0100.01316.90
7.4.330.0050.00015.55
7.4.320.0030.00316.48
7.4.300.0000.00616.55
7.4.290.0030.00316.40
7.4.280.0000.00816.45
7.4.270.0040.00216.49
7.4.260.0060.00316.50
7.4.250.0000.00716.48
7.4.240.0030.00316.43
7.4.230.0030.00316.34
7.4.220.0030.01516.56
7.4.210.0090.00616.70
7.4.200.0030.00316.69
7.4.160.0080.01016.37
7.4.150.0090.00917.40
7.4.140.0100.01017.86
7.4.130.0120.00816.52
7.4.120.0140.00616.56
7.4.110.0120.00916.51
7.4.100.0090.00916.66
7.4.90.0130.00316.36
7.4.80.0000.02319.39
7.4.70.0130.00316.58
7.4.60.0060.01016.57
7.4.50.0030.01416.27
7.4.40.0120.00316.49
7.4.30.0120.00616.44
7.4.00.0100.00515.01
7.3.330.0030.00313.33
7.3.320.0060.00013.38
7.3.310.0000.00716.34
7.3.300.0030.00316.41
7.3.290.0090.00616.36
7.3.280.0080.00916.36
7.3.270.0120.00617.40
7.3.260.0110.00616.36
7.3.250.0080.01016.31
7.3.240.0080.01116.36
7.3.230.0080.01116.53
7.3.210.0100.00716.37
7.3.200.0070.01016.32
7.3.190.0090.00716.42
7.3.180.0100.00716.55
7.3.170.0150.00616.29
7.3.160.0120.00416.38
7.3.120.0050.01014.78
7.3.110.0050.01114.78
7.3.100.0060.00614.80
7.3.90.0050.01014.64
7.3.80.0090.00414.80
7.3.70.0050.00614.51
7.3.60.0060.00514.82
7.3.50.0050.01014.76
7.3.40.0090.00714.86
7.3.30.0090.00314.69
7.3.20.0050.00716.67
7.3.10.0110.00316.70
7.3.00.0030.01216.72
7.2.330.0110.00916.54
7.2.320.0130.00316.74
7.2.310.0120.01216.79
7.2.300.0100.00716.72
7.2.290.0090.00616.42
7.2.250.0040.01415.20
7.2.240.0070.01015.08
7.2.230.0030.01014.93
7.2.220.0030.01015.02
7.2.210.0090.00415.05
7.2.200.0070.00614.93
7.2.190.0070.00514.89
7.2.180.0100.00314.85
7.2.170.0100.00615.03
7.2.160.0060.01014.69
7.2.150.0000.01616.95
7.2.140.0060.00616.87
7.2.130.0030.01017.00
7.2.120.0040.00816.81
7.2.110.0070.01016.85
7.2.100.0110.00416.64
7.2.90.0070.00717.07
7.2.80.0070.01116.63
7.2.70.0030.01316.80
7.2.60.0020.01116.97
7.2.50.0060.00916.83
7.2.40.0040.01216.63
7.2.30.0090.00616.79
7.2.20.0070.00716.89
7.2.10.0060.01016.64
7.2.00.0100.00518.13
7.1.330.0040.00615.73
7.1.320.0100.00515.52
7.1.310.0020.01015.64
7.1.300.0060.00715.56
7.1.290.0060.00615.55
7.1.280.0070.00715.69
7.1.270.0060.00715.65
7.1.260.0080.00815.54
7.1.250.0090.00415.83
7.1.200.0000.01115.72
7.1.100.0060.00617.83
7.1.70.0000.00717.17
7.1.60.0060.00617.09
7.1.50.0140.01116.82
7.1.30.0270.07038.18
7.1.20.0330.06038.32
7.1.10.2830.06720.38
7.1.00.2800.05320.50
7.0.200.0090.00616.39
7.0.170.0230.08321.79
7.0.160.3000.06320.13
7.0.150.3130.06720.06
7.0.140.3500.08320.04
7.0.130.2230.07020.09
7.0.120.1700.05720.03
7.0.110.2600.08020.13
7.0.100.2770.07020.09
7.0.90.2870.08020.12
7.0.80.2270.05320.08
7.0.70.2170.07020.04
7.0.60.2700.07020.04
7.0.50.2930.06020.14
7.0.40.1870.06720.07
7.0.30.1630.06320.18
7.0.20.1870.05720.02
7.0.10.1630.05020.04
7.0.00.1900.05720.02

preferences:
75 ms | 401 KiB | 5 Q