3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$foo->bar()::baz() class foo { function bar(){ echo 'bar'; }} class bar { static $baz = 'bazz'; } $foo = new foo; echo ($foo->bar())::$baz;

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.40.0070.01418.66
8.3.30.0120.00318.69
8.3.20.0070.00020.21
8.3.10.0040.00423.61
8.3.00.0090.00917.91
8.2.170.0140.00322.96
8.2.160.0140.00020.52
8.2.150.0040.01224.18
8.2.140.0030.00624.66
8.2.130.0170.00026.16
8.2.120.0090.00017.50
8.2.110.0110.00020.39
8.2.100.0110.00018.00
8.2.90.0040.00419.05
8.2.80.0030.00517.97
8.2.70.0040.00417.63
8.2.60.0040.00417.93
8.2.50.0060.00318.07
8.2.40.0060.00321.07
8.2.30.0070.00020.63
8.2.20.0040.00417.67
8.2.10.0050.00317.88
8.2.00.0040.00417.99
8.1.270.0070.01123.91
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0080.00023.79
8.1.230.0140.00017.53
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0030.00617.12
8.1.190.0030.00517.25
8.1.180.0050.00218.10
8.1.170.0030.00619.04
8.1.160.0070.00021.93
8.1.150.0070.00018.82
8.1.140.0040.00421.27
8.1.130.0040.00217.68
8.1.120.0000.00717.44
8.1.110.0000.00817.41
8.1.100.0000.00817.36
8.1.90.0040.00417.30
8.1.80.0000.00917.35
8.1.70.0000.00717.30
8.1.60.0030.00617.48
8.1.50.0030.00517.52
8.1.40.0000.01117.40
8.1.30.0040.00417.70
8.1.20.0000.00817.50
8.1.10.0030.00517.62
8.1.00.0020.00517.34
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00718.45
8.0.270.0030.00317.18
8.0.260.0000.00717.20
8.0.250.0070.00016.88
8.0.240.0000.00616.83
8.0.230.0030.00316.99
8.0.220.0070.00016.77
8.0.210.0050.00316.95
8.0.200.0060.00017.02
8.0.190.0050.00217.00
8.0.180.0070.00016.82
8.0.170.0000.00816.92
8.0.160.0080.00016.79
8.0.150.0030.00316.77
8.0.140.0080.00016.84
8.0.130.0000.00613.37
8.0.120.0040.00416.82
8.0.110.0000.00816.86
8.0.100.0040.00416.96
8.0.90.0070.00016.92
8.0.80.0030.01316.79
8.0.70.0000.00716.80
8.0.60.0040.00416.77
8.0.50.0050.00316.88
8.0.30.0100.00817.18
8.0.20.0130.00617.40
8.0.10.0050.00216.85
8.0.00.0080.01016.92
7.4.330.0050.00015.08
7.4.320.0000.00716.46
7.4.300.0000.00616.60
7.4.290.0030.00316.53
7.4.280.0030.00316.55
7.4.270.0000.01016.48
7.4.260.0000.00816.51
7.4.250.0030.00316.47
7.4.240.0010.00616.58
7.4.230.0030.00316.52
7.4.220.0100.00716.58
7.4.210.0070.00716.61
7.4.200.0000.00716.64
7.4.160.0100.00716.49
7.4.150.0120.00617.40
7.4.140.0170.00817.86
7.4.130.0080.01416.69
7.4.120.0110.00716.54
7.4.110.0100.00716.69
7.4.100.0100.01016.50
7.4.90.0070.01016.52
7.4.80.0070.01119.39
7.4.70.0070.01016.54
7.4.60.0090.00916.55
7.4.50.0000.00816.58
7.4.40.0180.00616.73
7.4.30.0110.00516.48
7.4.00.0070.00914.89
7.3.330.0000.00613.14
7.3.320.0000.00513.43
7.3.310.0000.00816.20
7.3.300.0030.00316.28
7.3.290.0080.00616.33
7.3.280.0150.00616.39
7.3.270.0130.01017.40
7.3.260.0120.01216.44
7.3.250.0100.00716.50
7.3.240.0120.00416.27
7.3.230.0170.00416.60
7.3.210.0110.00616.50
7.3.200.0140.00316.29
7.3.190.0090.00616.37
7.3.180.0030.01316.22
7.3.170.0070.01116.35
7.3.160.0100.01016.38
7.3.120.0070.01114.58
7.3.110.0070.01114.90
7.3.100.0030.01414.81
7.3.90.0040.00714.80
7.3.80.0000.00914.84
7.3.70.0000.00914.95
7.3.60.0060.00614.69
7.3.50.0030.00614.77
7.3.40.0060.00914.78
7.3.30.0040.00714.84
7.3.20.0060.01016.74
7.3.10.0070.00716.64
7.3.00.0030.01416.50
7.2.330.0110.00716.81
7.2.320.0070.01016.31
7.2.310.0090.00816.78
7.2.300.0030.01216.53
7.2.290.0130.00616.52
7.2.250.0080.01215.14
7.2.240.0040.01515.18
7.2.230.0110.00415.06
7.2.220.0060.00915.23
7.2.210.0070.01115.12
7.2.200.0130.00315.02
7.2.190.0060.00615.06
7.2.180.0040.01215.03
7.2.170.0040.00815.20
7.2.60.0060.00616.63
7.2.00.0100.00319.24
7.1.330.0090.00615.63
7.1.320.0000.01315.53
7.1.310.0040.01115.70
7.1.300.0060.00615.68
7.1.290.0070.00715.68
7.1.280.0110.00315.59
7.1.270.0040.00815.60
7.1.260.0070.00715.59
7.1.200.0070.00315.57
7.1.100.0040.00817.57
7.1.70.0090.00617.07
7.1.60.0110.01419.11
7.1.50.0000.01016.52
7.1.00.0070.07322.36
7.0.200.0000.01016.64
7.0.60.0030.04020.04
7.0.50.0200.06717.89
7.0.40.0100.07020.26
7.0.30.0230.08720.06
7.0.20.0270.05320.30
7.0.10.0300.07320.26
7.0.00.0100.07020.12
5.6.210.0070.08020.48
5.6.200.0070.07718.20
5.6.190.0000.04320.61
5.6.180.3470.03320.65
5.6.170.0270.05020.50
5.6.160.0100.04320.47
5.6.150.0000.04718.28
5.6.140.0070.08318.27
5.6.130.0130.05018.28
5.6.120.0030.04721.03
5.6.110.0070.06321.13
5.6.100.0100.08021.09
5.6.90.0300.05321.03
5.6.80.0100.07320.50
5.6.70.0030.03720.37
5.5.350.0130.04320.42
5.5.340.0070.03718.09
5.5.330.0030.08720.30
5.5.320.0570.06320.34
5.5.310.0370.07720.37
5.5.300.0000.05317.96
5.5.290.0100.06717.92
5.5.280.0170.07020.98
5.5.270.0170.05320.88
5.5.260.0100.08320.75
5.5.250.0100.07020.66
5.5.240.0100.05320.04
5.4.450.0500.06719.36
5.4.440.0670.04719.30
5.4.430.0570.05719.45
5.4.420.0570.06719.46
5.4.410.0770.05019.45
5.4.400.0600.05319.37
5.4.390.0730.05319.25
5.4.380.0630.04719.22
5.4.370.0630.05718.98
5.4.360.0770.06318.98
5.4.350.0630.06019.01
5.4.340.0600.07019.15
5.4.320.0730.05319.37
5.4.310.0530.05719.26
5.4.300.0600.05319.06
5.4.290.0430.06018.84
5.4.280.0570.06018.87
5.4.270.0900.04019.28
5.4.260.0670.06018.98
5.4.250.0700.05718.83
5.4.240.0630.05719.19
5.4.230.0670.08019.04
5.4.220.0600.05319.27
5.4.210.0730.04319.00
5.4.200.0600.05719.11
5.4.190.0730.04719.29
5.4.180.0670.06019.24
5.4.170.0530.05319.27
5.4.160.0530.05319.03
5.4.150.0670.06319.13
5.4.140.0430.06716.34
5.4.130.0500.05316.39
5.4.120.0570.05716.32
5.4.110.0530.06316.66
5.4.100.0530.05716.58
5.4.90.0530.06316.50
5.4.80.0470.05316.31
5.4.70.0530.05016.55
5.4.60.0600.05716.16
5.4.50.0500.06016.58
5.4.40.0530.05316.52
5.4.30.0730.04016.57
5.4.20.0700.04016.50
5.4.10.0600.07016.54
5.4.00.0700.05015.78

preferences:
30.39 ms | 400 KiB | 5 Q