3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public static $a = 'b'; public static function ftest() { echo 'test'; } } $test = new Test(); $test->ftest(); $test->a; $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.0150.00316.75
8.3.50.0130.00521.08
8.3.40.0150.00318.82
8.3.30.0080.00818.85
8.3.20.0040.00420.08
8.3.10.0080.00023.71
8.3.00.0030.00519.50
8.2.180.0120.00316.75
8.2.170.0120.00322.96
8.2.160.0140.00020.53
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0000.01117.50
8.2.120.0040.00426.35
8.2.110.0150.00422.08
8.2.100.0090.00317.91
8.2.90.0000.00818.84
8.2.80.0050.00517.97
8.2.70.0000.00817.93
8.2.60.0050.00317.68
8.2.50.0000.00818.10
8.2.40.0090.00020.57
8.2.30.0000.00720.50
8.2.20.0060.00317.63
8.2.10.0040.00418.06
8.2.00.0070.00017.92
8.1.280.0140.00325.92
8.1.270.0080.00023.87
8.1.260.0070.00028.09
8.1.250.0050.00228.09
8.1.240.0030.00523.84
8.1.230.0080.00420.94
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0050.00317.11
8.1.180.0040.00418.10
8.1.170.0030.00618.51
8.1.160.0000.00721.92
8.1.150.0000.00718.84
8.1.140.0050.00319.57
8.1.130.0030.00317.69
8.1.120.0050.00517.52
8.1.110.0000.00817.44
8.1.100.0020.00517.47
8.1.90.0000.00717.49
8.1.80.0040.00417.48
8.1.70.0030.00317.41
8.1.60.0040.00417.61
8.1.50.0000.00917.39
8.1.40.0030.00617.52
8.1.30.0080.00017.66
8.1.20.0070.00017.51
8.1.10.0000.00717.57
8.1.00.0080.00017.51
8.0.300.0000.00819.83
8.0.290.0000.00716.88
8.0.280.0080.00018.32
8.0.270.0000.00717.30
8.0.260.0030.00617.13
8.0.250.0030.00316.91
8.0.240.0030.00317.11
8.0.230.0070.00016.92
8.0.220.0060.00316.83
8.0.210.0000.00716.93
8.0.200.0000.00716.96
8.0.190.0050.00316.96
8.0.180.0040.00416.96
8.0.170.0050.00317.04
8.0.160.0000.00716.96
8.0.150.0030.00817.00
8.0.140.0000.00816.93
8.0.130.0000.00613.41
8.0.120.0050.00316.87
8.0.110.0040.00416.92
8.0.100.0000.00717.00
8.0.90.0030.00516.89
8.0.80.0030.01416.95
8.0.70.0000.00716.84
8.0.60.0050.00317.02
8.0.50.0030.00316.73
8.0.30.0090.01017.08
8.0.20.0120.00717.40
8.0.10.0030.00617.07
8.0.00.0090.00816.86
7.4.330.0000.00516.79
7.4.320.0060.00016.47
7.4.300.0030.00316.52
7.4.290.0060.00016.59
7.4.280.0080.00016.50
7.4.270.0030.00316.50
7.4.260.0020.00516.59
7.4.250.0070.00016.56
7.4.240.0060.00216.47
7.4.230.0030.00316.63
7.4.220.0100.00716.54
7.4.210.0030.01216.55
7.4.200.0000.00816.49
7.4.160.0060.00916.32
7.4.150.0140.00417.40
7.4.140.0090.00917.86
7.4.130.0100.00816.52
7.4.120.0100.00716.47
7.4.110.0140.00416.71
7.4.100.0110.00616.65
7.4.90.0090.00916.51
7.4.80.0060.01819.39
7.4.70.0170.00016.75
7.4.60.0030.01416.43
7.4.50.0080.00716.49
7.4.40.0200.00016.60
7.4.30.0060.01016.40
7.4.00.0000.01314.87
7.3.330.0000.00613.42
7.3.320.0000.00613.40
7.3.310.0000.00716.19
7.3.300.0040.00416.44
7.3.290.0030.01116.44
7.3.280.0110.00816.39
7.3.270.0130.00317.40
7.3.260.0070.01416.46
7.3.250.0200.01016.51
7.3.240.0120.00916.64
7.3.230.0040.01316.39
7.3.210.0090.00616.38
7.3.200.0060.00916.58
7.3.190.0080.00916.68
7.3.180.0070.01616.45
7.3.170.0150.00616.36
7.3.160.0120.00916.54
7.2.330.0120.00616.88
7.2.320.0130.00616.68
7.2.310.0070.01016.36
7.2.300.0060.01016.71
7.2.290.0060.01216.82
7.2.60.0070.00716.79
7.2.00.0110.00719.38
7.1.200.0060.00315.39
7.1.100.0090.00618.16
7.1.70.0040.01117.04
7.1.60.0060.00919.36
7.1.50.0060.01316.84
7.1.00.0030.07322.27
7.0.200.0040.00416.43
7.0.60.0030.04719.98
7.0.50.0130.06717.96
7.0.40.0030.08720.13
7.0.30.0400.05720.06
7.0.20.0070.05720.22
7.0.10.0030.07320.15
7.0.00.0030.08720.24
5.6.280.0000.05320.82
5.6.210.0100.05720.70
5.6.200.0030.07718.25
5.6.190.0100.08720.63
5.6.180.0370.06020.52
5.6.170.0330.07320.44
5.6.160.0000.04320.50
5.6.150.0030.08318.21
5.6.140.0030.08018.25
5.6.130.0000.05318.15
5.6.120.0070.05321.10
5.6.110.0070.09021.12
5.6.100.0130.07021.13
5.6.90.0070.06021.05
5.6.80.0000.04020.51
5.5.350.0230.07020.35
5.5.340.0070.06318.09
5.5.330.0070.09020.43
5.5.320.0270.08020.42
5.5.310.0200.04320.24
5.5.300.0070.07017.97
5.5.290.0070.03717.98
5.5.280.0070.09020.88
5.5.270.0070.07020.89
5.5.260.0070.08320.89
5.5.250.0100.08720.58
5.5.240.0300.07320.16

preferences:
44.91 ms | 401 KiB | 5 Q