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.0170.00316.50
8.3.50.0100.00921.14
8.3.40.0080.00818.79
8.3.30.0070.00718.68
8.3.20.0070.00020.42
8.3.10.0040.00423.61
8.3.00.0050.00319.38
8.2.180.0070.01118.67
8.2.170.0170.00322.96
8.2.160.0070.00720.42
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0030.00617.63
8.2.120.0040.00426.35
8.2.110.0090.00020.58
8.2.100.0000.01217.93
8.2.90.0040.00419.25
8.2.80.0030.00617.97
8.2.70.0000.00917.49
8.2.60.0070.00417.80
8.2.50.0110.00018.07
8.2.40.0050.00219.34
8.2.30.0000.00720.64
8.2.20.0050.00317.67
8.2.10.0000.00817.98
8.2.00.0040.00418.11
8.1.280.0150.00325.92
8.1.270.0030.00623.96
8.1.260.0040.00428.09
8.1.250.0000.00728.09
8.1.240.0060.00320.78
8.1.230.0040.00817.42
8.1.220.0080.00017.74
8.1.210.0030.00518.77
8.1.200.0000.00817.35
8.1.190.0040.00417.58
8.1.180.0050.00318.10
8.1.170.0000.00818.46
8.1.160.0090.00021.98
8.1.150.0040.00418.73
8.1.140.0080.00019.38
8.1.130.0000.00717.61
8.1.120.0040.00417.34
8.1.110.0000.00717.25
8.1.100.0040.00317.39
8.1.90.0050.00217.36
8.1.80.0040.00417.42
8.1.70.0070.00017.37
8.1.60.0000.00717.61
8.1.50.0080.00017.53
8.1.40.0020.00517.43
8.1.30.0050.00317.63
8.1.20.0040.00417.63
8.1.10.0030.00617.59
8.1.00.0030.00517.44
8.0.300.0000.00718.77
8.0.290.0040.00416.88
8.0.280.0000.00818.48
8.0.270.0070.00017.18
8.0.260.0040.00417.19
8.0.250.0070.00016.85
8.0.240.0070.00016.82
8.0.230.0000.00716.91
8.0.220.0060.00316.92
8.0.210.0040.00416.80
8.0.200.0030.00316.84
8.0.190.0030.00516.95
8.0.180.0050.00316.96
8.0.170.0050.00216.89
8.0.160.0030.00316.90
8.0.150.0080.00416.76
8.0.140.0040.00416.71
8.0.130.0050.00013.31
8.0.120.0040.00416.86
8.0.110.0000.00816.90
8.0.100.0050.00216.95
8.0.90.0070.00016.88
8.0.80.0110.00416.81
8.0.70.0000.00716.95
8.0.60.0050.00317.00
8.0.50.0000.00816.78
8.0.30.0140.00316.88
8.0.20.0120.00917.40
8.0.10.0040.00416.89
8.0.00.0100.00716.65
7.4.330.0000.00516.84
7.4.320.0070.00016.39
7.4.300.0000.00716.59
7.4.290.0000.00716.54
7.4.280.0000.00716.38
7.4.270.0030.00316.50
7.4.260.0040.00416.57
7.4.250.0000.00716.40
7.4.240.0050.00216.50
7.4.230.0030.00316.67
7.4.220.0070.01416.44
7.4.210.0060.00916.60
7.4.200.0000.00716.50
7.4.160.0150.00016.33
7.4.150.0070.01117.40
7.4.140.0030.01617.86
7.4.130.0120.00816.49
7.4.120.0080.01016.61
7.4.110.0130.00416.56
7.4.100.0090.00816.56
7.4.90.0170.00716.56
7.4.80.0140.00419.39
7.4.70.0060.01116.62
7.4.60.0070.01016.54
7.4.50.0070.01016.57
7.4.40.0130.00416.51
7.4.30.0100.00616.47
7.4.00.0080.01014.85
7.3.330.0030.00613.43
7.3.320.0000.00613.36
7.3.310.0020.00516.40
7.3.300.0030.00316.40
7.3.290.0090.00616.34
7.3.280.0090.00916.38
7.3.270.0140.00417.40
7.3.260.0160.00016.29
7.3.250.0110.00616.35
7.3.240.0150.00516.34
7.3.230.0060.01116.39
7.3.210.0070.01016.56
7.3.200.0060.01016.42
7.3.190.0080.01216.58
7.3.180.0120.00616.47
7.3.170.0100.00716.33
7.3.160.0090.00616.30
7.3.120.0100.00814.95
7.3.110.0100.00714.68
7.3.100.0090.00714.75
7.3.90.0050.00514.80
7.3.80.0050.01114.78
7.3.70.0060.00714.81
7.3.60.0070.00814.69
7.3.50.0060.00714.72
7.3.40.0070.00814.75
7.3.30.0030.01114.67
7.3.20.0060.00816.59
7.3.10.0090.00616.50
7.3.00.0060.00816.62
7.2.330.0140.00616.47
7.2.320.0090.00816.55
7.2.310.0110.00616.78
7.2.300.0120.00916.84
7.2.290.0120.00616.52
7.2.250.0060.01314.88
7.2.240.0060.01414.83
7.2.230.0050.00915.05
7.2.220.0040.00814.81
7.2.210.0040.00915.04
7.2.200.0080.00414.94
7.2.190.0060.00715.07
7.2.180.0040.01115.05
7.2.170.0080.00515.06
7.2.160.0040.01414.98
7.2.150.0070.01116.96
7.2.140.0030.01216.89
7.2.130.0030.01016.84
7.2.120.0100.00616.88
7.2.110.0060.00916.94
7.2.100.0070.00316.65
7.2.90.0040.00816.78
7.2.80.0120.00316.49
7.2.70.0070.01117.13
7.2.60.0090.00416.86
7.2.50.0030.00616.57
7.2.40.0000.01116.88
7.2.30.0000.00916.68
7.2.20.0040.01216.62
7.2.10.0080.00316.99
7.2.00.0090.00618.16
7.1.330.0030.01215.64
7.1.320.0040.00915.68
7.1.310.0050.00815.72
7.1.300.0040.00715.75
7.1.290.0040.00815.79
7.1.280.0040.01015.68
7.1.270.0060.00915.66
7.1.260.0080.00715.62
7.1.250.0090.00315.86
7.1.200.0040.00715.57
7.1.100.0060.00318.13
7.1.70.0040.01117.20
7.1.60.0060.01019.36
7.1.50.0070.00716.95
7.1.00.0070.07322.31
7.0.200.0030.00616.68
7.0.60.0030.04020.04
7.0.50.0070.08317.89
7.0.40.0100.04020.02
7.0.30.0230.05720.24
7.0.20.0200.03720.09
7.0.10.0070.06320.16
7.0.00.0100.08020.24
5.6.280.0000.03320.87
5.6.210.0100.07020.54
5.6.200.0070.07318.18
5.6.190.0130.07720.45
5.6.180.0370.04020.41
5.6.170.0230.05720.48
5.6.160.0030.06320.54
5.6.150.0130.04718.16
5.6.140.0170.06718.18
5.6.130.0130.07018.18
5.6.120.0100.06320.88
5.6.110.0130.08021.02
5.6.100.0100.04021.01
5.6.90.0200.07020.95
5.6.80.0130.04720.53
5.5.350.0270.05720.40
5.5.340.0070.04017.95
5.5.330.0100.07320.34
5.5.320.0300.05320.42
5.5.310.0170.09020.34
5.5.300.0070.08017.99
5.5.290.0070.03718.01
5.5.280.0030.09020.96
5.5.270.0170.07320.86
5.5.260.0100.05320.96
5.5.250.0070.08720.66
5.5.240.0370.07320.16

preferences:
46.1 ms | 401 KiB | 5 Q