3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public static $a = 'static property called'; public static function ftest() { echo 'static function called'; } } $test = new Test(); $test->ftest(); echo $test->a; echo Test::$a;

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.0100.00716.63
8.3.50.0070.01018.15
8.3.40.0040.01118.79
8.3.30.0070.00718.71
8.3.20.0050.00220.37
8.3.10.0040.00423.48
8.3.00.0040.00419.26
8.2.180.0170.00318.39
8.2.170.0040.01122.96
8.2.160.0030.01020.47
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0060.00317.75
8.2.120.0050.00326.35
8.2.110.0050.00522.14
8.2.100.0080.00418.04
8.2.90.0050.00319.17
8.2.80.0000.00917.97
8.2.70.0000.00817.75
8.2.60.0040.00417.80
8.2.50.0090.00318.07
8.2.40.0040.00419.38
8.2.30.0000.00720.54
8.2.20.0000.01017.79
8.2.10.0000.00718.05
8.2.00.0050.00217.97
8.1.280.0110.00325.92
8.1.270.0090.00023.66
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0040.00420.97
8.1.230.0080.00417.66
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0040.00417.13
8.1.190.0030.00617.58
8.1.180.0040.00418.10
8.1.170.0040.00418.50
8.1.160.0040.00421.94
8.1.150.0040.00418.76
8.1.140.0000.00819.49
8.1.130.0040.00417.63
8.1.120.0030.00717.39
8.1.110.0070.00017.27
8.1.100.0000.00717.32
8.1.90.0040.00417.29
8.1.80.0040.00417.28
8.1.70.0030.00317.39
8.1.60.0090.00017.58
8.1.50.0080.00017.55
8.1.40.0000.00817.47
8.1.30.0030.00517.61
8.1.20.0000.00817.46
8.1.10.0000.00817.56
8.1.00.0040.00417.39
8.0.300.0040.00418.77
8.0.290.0050.00316.88
8.0.280.0040.00418.46
8.0.270.0070.00017.24
8.0.260.0030.00617.16
8.0.250.0060.00016.88
8.0.240.0050.00217.05
8.0.230.0000.00716.82
8.0.220.0000.00816.79
8.0.210.0050.00316.87
8.0.200.0030.00316.93
8.0.190.0060.00316.99
8.0.180.0040.00416.93
8.0.170.0030.00616.90
8.0.160.0000.00716.93
8.0.150.0050.00516.71
8.0.140.0040.00416.82
8.0.130.0030.00313.26
8.0.120.0080.00016.79
8.0.110.0070.00016.90
8.0.100.0030.00516.86
8.0.90.0040.00316.76
8.0.80.0120.00816.82
8.0.70.0040.00416.95
8.0.60.0000.00716.72
8.0.50.0050.00216.92
8.0.30.0060.01416.92
8.0.20.0110.01017.40
8.0.10.0030.00416.96
8.0.00.0110.00616.87
7.4.330.0050.00016.85
7.4.320.0040.00416.41
7.4.300.0070.00016.49
7.4.290.0000.00716.63
7.4.280.0040.00416.62
7.4.270.0030.00316.64
7.4.260.0000.01016.47
7.4.250.0070.00016.57
7.4.240.0020.00516.54
7.4.230.0000.00716.55
7.4.220.0060.00916.62
7.4.210.0120.00316.51
7.4.200.0030.00316.38
7.4.160.0060.00916.51
7.4.150.0120.00617.40
7.4.140.0090.00917.86
7.4.130.0140.00516.57
7.4.120.0100.00716.53
7.4.110.0130.00416.47
7.4.100.0030.01516.49
7.4.90.0120.01216.29
7.4.80.0030.01919.39
7.4.70.0080.00816.48
7.4.60.0070.01116.38
7.4.50.0070.00716.24
7.4.40.0160.00016.72
7.4.30.0130.00716.53
7.4.00.0090.00514.82
7.3.330.0060.00013.30
7.3.320.0030.00313.31
7.3.310.0000.00816.46
7.3.300.0000.00716.32
7.3.290.0060.01016.32
7.3.280.0080.00916.42
7.3.270.0110.00717.40
7.3.260.0140.00416.48
7.3.250.0030.01616.53
7.3.240.0110.01216.25
7.3.230.0100.00716.49
7.3.210.0080.00816.41
7.3.200.0060.00916.37
7.3.190.0120.00316.34
7.3.180.0160.00016.36
7.3.170.0070.01516.39
7.3.160.0080.00816.29
7.3.120.0060.00614.86
7.3.110.0060.00914.84
7.3.100.0040.01114.81
7.3.90.0040.00814.52
7.3.80.0100.00314.58
7.3.70.0030.01014.71
7.3.60.0080.00814.79
7.3.50.0030.00614.75
7.3.40.0070.00714.85
7.3.30.0070.00314.82
7.3.20.0040.00916.77
7.3.10.0060.00516.63
7.3.00.0050.00716.65
7.2.330.0090.00916.84
7.2.320.0120.00616.64
7.2.310.0060.01016.89
7.2.300.0040.01216.63
7.2.290.0060.01216.75
7.2.250.0070.01115.34
7.2.240.0040.01115.02
7.2.230.0070.01115.08
7.2.220.0110.00414.58
7.2.210.0000.01414.97
7.2.200.0070.00714.80
7.2.190.0110.00715.22
7.2.180.0000.01214.74
7.2.170.0060.00915.15
7.2.130.0100.00617.04
7.2.120.0060.00616.91
7.2.110.0070.00716.94
7.2.100.0090.00916.86
7.2.90.0060.00616.88
7.2.80.0030.00916.87
7.2.70.0060.01017.14
7.2.60.0060.00616.96
7.2.50.0060.00916.83
7.2.40.0000.00916.96
7.2.30.0100.00617.08
7.2.20.0080.00816.89
7.2.10.0040.01216.93
7.2.00.0070.00918.05
7.1.330.0100.00615.66
7.1.320.0000.01315.68
7.1.310.0070.00715.59
7.1.300.0090.00015.49
7.1.290.0040.00815.73
7.1.280.0030.00615.69
7.1.270.0030.01315.54
7.1.260.0080.00415.49
7.1.250.0000.00815.54
7.1.200.0060.00315.35
7.1.100.0090.00318.05
7.1.70.0030.01017.05
7.1.60.0040.02119.36
7.1.50.0000.01316.88
7.1.00.0000.08022.52
7.0.200.0050.00316.64
7.0.60.0130.03019.79
7.0.50.0100.03317.87
7.0.40.0100.07020.40
7.0.30.0370.07320.11
7.0.20.0270.07320.17
7.0.10.0000.05320.23
7.0.00.0130.08020.35
5.6.280.0030.03021.12
5.6.210.0200.07020.63
5.6.200.0100.07718.27
5.6.190.0130.05720.61
5.6.180.0330.06020.46
5.6.170.0230.08020.48
5.6.160.0030.04320.54
5.6.150.0070.04718.15
5.6.140.0070.08318.24
5.6.130.0000.08018.24
5.6.120.0030.04321.00
5.6.110.0070.07321.07
5.6.100.0070.08021.12
5.6.90.0170.07321.10
5.6.80.0070.08020.38
5.5.350.0200.07720.38
5.5.340.0000.04318.09
5.5.330.0100.06320.41
5.5.320.0300.04720.32
5.5.310.0300.07720.19
5.5.300.0130.07717.98
5.5.290.0030.04018.09
5.5.280.0030.04720.98
5.5.270.0200.07720.86
5.5.260.0130.07720.87
5.5.250.0100.09720.61
5.5.240.0270.07720.07

preferences:
57.4 ms | 400 KiB | 5 Q