3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static $a; public $b; public function ab() { return $this::$b; } public function __construct() { var_dump($this::ab(), $this::ab()); } } new 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.0040.01416.75
8.3.50.0060.01421.93
8.3.40.0060.01218.82
8.3.30.0070.00719.21
8.3.20.0050.00320.21
8.3.10.0000.00823.69
8.3.00.0040.00419.50
8.2.180.0140.00318.43
8.2.170.0060.00922.96
8.2.160.0120.00620.47
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0030.00526.16
8.2.120.0000.00722.21
8.2.110.0040.00422.29
8.2.100.0030.00817.78
8.2.90.0000.00919.08
8.2.80.0030.00518.03
8.2.70.0050.00317.63
8.2.60.0000.00817.93
8.2.50.0040.00418.07
8.2.40.0050.00318.16
8.2.30.0030.00518.05
8.2.20.0000.00717.73
8.2.10.0040.00417.86
8.2.00.0040.00417.58
8.1.280.0090.00925.92
8.1.270.0050.00323.77
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0040.00423.93
8.1.230.0080.00418.93
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.10
8.1.190.0000.00817.30
8.1.180.0030.00618.10
8.1.170.0040.00418.61
8.1.160.0030.00621.89
8.1.150.0040.00418.51
8.1.140.0040.00417.32
8.1.130.0030.00317.66
8.1.120.0030.00317.32
8.1.110.0000.00717.36
8.1.100.0070.00017.31
8.1.90.0040.00417.21
8.1.80.0000.00717.25
8.1.70.0000.00717.29
8.1.60.0000.00817.41
8.1.50.0000.00817.53
8.1.40.0050.00317.35
8.1.30.0080.00017.44
8.1.20.0000.00817.60
8.1.10.0070.00017.40
8.1.00.0040.00417.44
8.0.300.0040.00418.77
8.0.290.0040.00417.04
8.0.280.0030.00318.29
8.0.270.0030.00317.11
8.0.260.0030.00517.25
8.0.250.0030.00516.83
8.0.240.0000.00816.84
8.0.230.0040.00416.95
8.0.220.0030.00316.89
8.0.210.0030.00616.78
8.0.200.0060.00016.99
8.0.190.0050.00216.84
8.0.180.0000.00716.92
8.0.170.0040.00416.97
8.0.160.0000.00717.02
8.0.150.0040.00416.82
8.0.140.0030.00516.81
8.0.130.0030.00313.27
8.0.120.0040.00416.74
8.0.110.0040.00416.84
8.0.100.0070.00016.71
8.0.90.0070.00016.83
8.0.80.0160.00016.80
8.0.70.0000.00716.75
8.0.60.0000.00716.89
8.0.50.0000.00716.93
8.0.30.0080.01116.96
8.0.20.0090.00917.40
8.0.10.0000.00716.87
8.0.00.0040.01417.03
7.4.330.0020.00215.00
7.4.320.0030.00316.43
7.4.300.0050.00216.48
7.4.290.0030.00316.59
7.4.280.0000.00716.43
7.4.270.0070.00016.63
7.4.260.0030.00316.53
7.4.250.0030.00316.36
7.4.240.0020.00616.43
7.4.230.0070.00016.41
7.4.220.0070.01116.53
7.4.210.0090.00516.52
7.4.200.0070.00016.48
7.4.190.0050.00216.38
7.4.160.0090.00616.17
7.4.150.0110.01117.40
7.4.140.0110.00717.86
7.4.130.0070.01016.40
7.4.120.0040.01316.51
7.4.110.0090.01516.46
7.4.100.0090.00916.57
7.4.90.0000.01716.46
7.4.80.0080.00819.39
7.4.70.0150.00616.58
7.4.60.0130.00616.62
7.4.50.0080.00016.63
7.4.40.0100.00022.77
7.4.30.0090.00616.57
7.4.00.0040.01115.13
7.3.330.0050.00013.18
7.3.320.0050.00013.23
7.3.310.0030.00316.38
7.3.300.0000.00716.39
7.3.290.0090.00516.36
7.3.280.0080.01016.36
7.3.270.0040.01417.40
7.3.260.0080.01316.39
7.3.250.0070.01216.50
7.3.240.0150.00616.62
7.3.230.0090.00616.39
7.3.210.0150.00916.38
7.3.200.0030.01919.39
7.3.190.0070.01116.62
7.3.180.0040.01116.34
7.3.170.0090.00616.60
7.3.160.0080.00816.44
7.3.120.0030.01414.89
7.2.330.0140.00416.38
7.2.320.0060.01216.35
7.2.310.0090.00916.33
7.2.300.0120.00316.58
7.2.290.0140.00916.48
7.2.60.0120.00916.86
7.2.50.0060.00616.93
7.2.00.0070.00719.33
7.1.200.0080.00415.60
7.1.70.0000.00717.16
7.1.60.0170.00719.33
7.1.50.0060.00616.84
7.1.00.0070.07322.28
7.0.200.0030.01016.79
7.0.140.0030.07322.22
7.0.60.0100.04019.88
7.0.50.0130.07317.88
7.0.40.0070.09020.13
7.0.30.0370.05320.21
7.0.20.0430.06320.35
7.0.10.0070.05720.33
7.0.00.0100.08020.22
5.6.280.0030.07320.92
5.6.210.0030.06320.73
5.6.200.0030.04318.18
5.6.190.0070.04320.62
5.6.180.0270.03020.55
5.6.170.0270.07720.62
5.6.160.0030.05320.48
5.6.150.0070.08318.18
5.6.140.0030.05318.25
5.6.130.0000.09018.15
5.6.120.0200.07021.00
5.6.110.0130.08020.99
5.6.100.0000.06321.01
5.6.90.0070.08720.97
5.6.80.0130.07320.38
5.6.70.4130.03720.40
5.5.350.0130.07720.33
5.5.340.0030.06317.95
5.5.330.0000.06020.27
5.5.320.0100.06320.29
5.5.310.0300.06320.34
5.5.300.0230.07318.03
5.5.290.0170.07017.93
5.5.280.0100.03720.74
5.5.270.0000.06020.77
5.5.260.0000.07720.93
5.5.250.0100.08020.58
5.5.240.0230.06720.23
5.4.450.0170.06019.45
5.4.440.0100.06019.34
5.4.430.0070.06019.38
5.4.420.0170.05719.45
5.4.410.0170.05019.25
5.4.400.0030.06018.98
5.4.390.0070.05719.16
5.4.380.0330.05318.59
5.4.370.0330.05318.84
5.4.360.0470.06018.62
5.4.350.1000.05318.84
5.4.340.0230.07318.73
5.4.320.0110.03612.50
5.4.310.0060.05312.50
5.4.300.0050.03712.50
5.4.290.0080.04112.50
5.4.280.0110.04112.37
5.4.270.0070.03712.37
5.4.260.0090.03912.38
5.4.250.0090.03912.37
5.4.240.0060.04212.38
5.4.230.0090.05312.36
5.4.220.0100.05412.37
5.4.210.0040.04212.36
5.4.200.0070.04212.36
5.4.190.0140.03912.36
5.4.180.0070.03812.36
5.4.170.0100.03812.37
5.4.160.0050.03812.36
5.4.150.0070.03712.36
5.4.140.0060.04012.05
5.4.130.0070.03512.04
5.4.120.0060.03611.99
5.4.110.0100.03311.99
5.4.100.0080.03611.99
5.4.90.0050.04611.99
5.4.80.0110.06211.99
5.4.70.0140.07111.99
5.4.60.0090.04911.99
5.4.50.0110.05211.98
5.4.40.0090.05211.97
5.4.30.0190.06811.97
5.4.20.0080.06311.97
5.4.10.0080.03611.97
5.4.00.0130.05311.46
5.3.290.0090.04212.80
5.3.280.0110.07312.71
5.3.270.0060.05112.73
5.3.260.0130.05712.72
5.3.250.0080.05012.72
5.3.240.0100.04512.72
5.3.230.0070.04312.71
5.3.220.0050.05212.68
5.3.210.0060.05212.68
5.3.200.0060.03912.68
5.3.190.0090.05312.67
5.3.180.0050.04412.67
5.3.170.0070.04012.67
5.3.160.0130.07612.67
5.3.150.0120.04312.68
5.3.140.0070.04412.66
5.3.130.0100.05012.66
5.3.120.0080.05212.66
5.3.110.0080.04912.66
5.3.100.0100.03512.11
5.3.90.0040.05712.08
5.3.80.0090.04912.07
5.3.70.0060.04212.07
5.3.60.0090.05812.06
5.3.50.0150.03812.00
5.3.40.0080.04612.00
5.3.30.0090.04011.96
5.3.20.0110.04711.74
5.3.10.0110.04111.70
5.3.00.0060.06511.69
5.2.170.0120.0369.19
5.2.160.0100.0489.19
5.2.150.0080.0489.19
5.2.140.0060.0599.18
5.2.130.0080.0419.15
5.2.120.0080.0439.15
5.2.110.0060.0459.15
5.2.100.0100.0329.14
5.2.90.0070.0369.14
5.2.80.0060.0329.14
5.2.70.0080.0309.14
5.2.60.0040.0339.09
5.2.50.0060.0319.06
5.2.40.0070.0309.04
5.2.30.0080.0489.02
5.2.20.0080.0299.00
5.2.10.0050.0378.93
5.2.00.0070.0498.77
5.1.60.0080.0328.06
5.1.50.0080.0328.06
5.1.40.0050.0358.05
5.1.30.0090.0298.39
5.1.20.0080.0278.43
5.1.10.0060.0468.14
5.1.00.0060.0398.14
5.0.50.0030.0316.61
5.0.40.0050.0286.48
5.0.30.0050.0616.29
5.0.20.0090.0286.25
5.0.10.0030.0316.23
5.0.00.0040.0436.22
4.4.90.0060.0334.77
4.4.80.0060.0224.75
4.4.70.0040.0244.75
4.4.60.0070.0194.75
4.4.50.0050.0294.77
4.4.40.0020.0274.71
4.4.30.0060.0144.76
4.4.20.0070.0184.85
4.4.10.0060.0134.85
4.4.00.0030.0254.76
4.3.110.0010.0184.66
4.3.100.0040.0154.66
4.3.90.0020.0164.63
4.3.80.0010.0354.59
4.3.70.0050.0224.63
4.3.60.0020.0234.63
4.3.50.0020.0244.63
4.3.40.0050.0334.54
4.3.30.0060.0333.29
4.3.20.0050.0223.26
4.3.10.0030.0213.23
4.3.00.0000.0238.93

preferences:
35.53 ms | 401 KiB | 5 Q