3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { protected $a = '1'; public function a() { print "2"; } public function b() { print $this->a; } public function a1() { static::a(); } public function b1() { static::b(); } } $t = new test(); $t->a(); $t->b(); $t->a1(); $t->b1(); $t::a(); $t::b(); $t::a1(); $t::b1();

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.0190.00018.55
8.3.50.0130.01021.20
8.3.40.0030.01018.80
8.3.30.0170.00019.27
8.3.20.0040.00420.20
8.3.10.0040.00420.53
8.3.00.0040.00419.38
8.2.180.0090.00616.63
8.2.170.0070.00722.96
8.2.160.0100.00320.57
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00019.81
8.2.110.0060.00322.11
8.2.100.0070.00418.03
8.2.90.0060.00317.91
8.2.80.0080.00018.16
8.2.70.0070.00217.50
8.2.60.0030.00517.93
8.2.50.0040.00418.07
8.2.40.0050.00218.16
8.2.30.0090.00018.13
8.2.20.0000.00717.66
8.2.10.0070.00017.99
8.2.00.0040.00417.73
8.1.280.0140.00725.92
8.1.270.0080.00021.99
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0090.00022.47
8.1.230.0040.00720.99
8.1.220.0000.00817.74
8.1.210.0030.00618.91
8.1.200.0000.00917.35
8.1.190.0000.00917.13
8.1.180.0040.00418.10
8.1.170.0040.00420.38
8.1.160.0040.00422.00
8.1.150.0070.00018.85
8.1.140.0000.00817.44
8.1.130.0030.00317.83
8.1.120.0050.00317.31
8.1.110.0060.00317.34
8.1.100.0000.00717.30
8.1.90.0000.00717.37
8.1.80.0070.00017.43
8.1.70.0000.00717.31
8.1.60.0000.00817.48
8.1.50.0000.00817.57
8.1.40.0040.00817.42
8.1.30.0050.00317.49
8.1.20.0000.00817.50
8.1.10.0020.00517.50
8.1.00.0000.00817.46
8.0.300.0000.00720.04
8.0.290.0000.00716.75
8.0.280.0070.00018.44
8.0.270.0000.00717.28
8.0.260.0030.00317.21
8.0.250.0070.00016.92
8.0.240.0040.00417.01
8.0.230.0000.00716.87
8.0.220.0080.00016.89
8.0.210.0000.00716.80
8.0.200.0030.00316.94
8.0.190.0060.00316.80
8.0.180.0070.00016.97
8.0.170.0000.00716.88
8.0.160.0000.00816.94
8.0.150.0070.00016.90
8.0.140.0050.00316.75
8.0.130.0000.00613.29
8.0.120.0000.00716.75
8.0.110.0040.00416.95
8.0.100.0040.00416.79
8.0.90.0000.00716.76
8.0.80.0090.00616.86
8.0.70.0050.00316.77
8.0.60.0040.00416.93
8.0.50.0080.00016.92
8.0.30.0140.00817.08
8.0.20.0080.01017.40
8.0.10.0070.00016.99
8.0.00.0100.00916.82
7.4.330.0030.00315.09
7.4.320.0040.00416.59
7.4.300.0000.00716.59
7.4.290.0050.00316.61
7.4.280.0050.00316.61
7.4.270.0030.00316.65
7.4.260.0030.00316.39
7.4.250.0000.00716.62
7.4.240.0040.00316.47
7.4.230.0000.00716.61
7.4.220.0080.00916.49
7.4.210.0060.00916.63
7.4.200.0040.00416.51
7.4.160.0080.00816.56
7.4.150.0140.00317.40
7.4.140.0100.01217.86
7.4.130.0110.00716.45
7.4.120.0130.00416.53
7.4.110.0090.00916.46
7.4.100.0090.00916.61
7.4.90.0090.00916.51
7.4.80.0070.01119.39
7.4.70.0110.01016.35
7.4.60.0090.00616.48
7.4.50.0030.00516.41
7.4.40.0110.01116.67
7.4.30.0080.00816.54
7.4.00.0060.01015.19
7.3.330.0030.00313.49
7.3.320.0000.00613.42
7.3.310.0040.00416.53
7.3.300.0000.00716.43
7.3.290.0060.01116.41
7.3.280.0080.00816.40
7.3.270.0080.00917.40
7.3.260.0150.00416.42
7.3.250.0090.01116.58
7.3.240.0130.00316.23
7.3.230.0040.01416.48
7.3.210.0100.00716.42
7.3.200.0120.00619.39
7.3.190.0090.00916.51
7.3.180.0060.01316.41
7.3.170.0140.00716.44
7.3.160.0090.00616.48
7.2.330.0080.01216.59
7.2.320.0070.01016.80
7.2.310.0100.00716.67
7.2.300.0080.00816.39
7.2.290.0090.00816.39
7.2.60.0090.00617.00
7.1.200.0070.00415.66
7.1.100.0040.00818.05
7.1.70.0080.00016.96
7.1.60.0100.01319.32
7.1.50.0070.01016.69
7.1.00.0030.07722.27
7.0.200.0000.00816.72
7.0.140.0030.07322.08
7.0.70.0030.08021.93
7.0.60.0000.08021.75
7.0.50.0100.07022.12
7.0.40.0000.06020.05
7.0.30.0070.08320.14
7.0.20.0100.07720.13
7.0.10.0170.07320.09
7.0.00.0000.08320.10
5.6.280.0030.07321.03
5.6.220.0030.08320.63
5.6.210.0030.08020.65
5.6.200.0030.05020.98
5.6.190.0100.04721.01
5.6.180.0000.07321.05
5.6.170.0070.05720.96
5.6.160.0030.06721.00
5.6.150.0030.05321.00
5.6.140.0030.08721.04
5.6.130.0070.06021.16
5.6.120.0030.04021.07
5.6.110.0030.04321.05
5.6.100.0000.04721.06
5.6.90.0030.04720.99
5.6.80.0070.04020.45
5.6.70.0070.04020.48
5.6.60.0000.04020.32
5.6.50.0070.04320.38
5.6.40.0130.04020.53
5.6.30.0000.07020.40
5.6.20.0030.07720.39
5.6.10.0000.04020.31
5.6.00.0070.04720.37
5.5.360.0030.06720.31
5.5.350.0030.05320.46
5.5.340.0030.07020.77
5.5.330.0030.05720.91
5.5.320.0100.07320.80
5.5.310.0000.08020.91
5.5.300.0100.06720.76
5.5.290.0000.06320.91
5.5.280.0030.04020.89
5.5.270.0030.04320.72
5.5.260.0000.04320.78
5.5.250.0030.06720.66
5.5.240.0030.05020.29
5.5.230.0000.04320.28
5.5.220.0030.03720.17
5.5.210.0070.03720.25
5.5.200.0030.06720.25
5.5.190.0000.06720.08
5.5.180.0100.08320.23
5.5.160.0000.04320.25
5.5.150.0030.04019.94
5.5.140.0030.04020.26
5.5.130.0070.04020.25
5.5.120.0070.03320.11
5.5.110.0030.05720.11
5.5.100.0000.04320.10
5.5.90.0030.04020.09
5.5.80.0000.04020.13
5.5.70.0000.04019.94
5.5.60.0070.03319.96
5.5.50.0030.03320.09
5.5.40.0000.03320.07
5.5.30.0030.03319.93
5.5.20.0000.04020.05
5.5.10.0000.04020.06
5.5.00.0000.04020.05
5.4.450.0070.05319.35
5.4.440.0000.04019.54
5.4.430.0030.03719.16
5.4.420.0000.04319.34
5.4.410.0030.03719.21
5.4.400.0030.04719.13
5.4.390.0030.03718.98
5.4.380.0070.06719.07
5.4.370.0070.04019.03
5.4.360.0030.03719.09
5.4.350.0070.03719.02
5.4.340.0030.05319.07
5.4.320.0030.03719.16
5.4.310.0030.03719.07
5.4.300.0000.04018.84
5.4.290.0030.03718.86
5.4.280.0030.04019.07
5.4.270.0070.03319.02
5.4.260.0070.03319.14
5.4.250.0070.03719.02
5.4.240.0000.03719.07
5.4.230.0000.03719.18
5.4.220.0030.03718.88
5.4.210.0000.03318.86
5.4.200.0000.03318.86
5.4.190.0000.04019.02
5.4.180.0000.03719.20
5.4.170.0030.03319.18
5.4.160.0000.03318.84
5.4.150.0000.04019.19
5.4.140.0000.03716.34
5.4.130.0070.03016.45
5.4.120.0030.03316.18
5.4.110.0000.03016.30
5.4.100.0030.03316.34
5.4.90.0000.05316.47
5.4.80.0000.03716.30
5.4.70.0030.04716.45
5.4.60.0000.06016.44
5.4.50.0030.07316.43
5.4.40.0100.05316.28
5.4.30.0030.07316.29
5.4.20.0100.04716.41
5.4.10.0030.07716.34
5.4.00.0170.06315.94
5.3.290.0070.03314.69
5.3.280.0000.03714.67
5.3.270.0000.04014.66
5.3.260.0070.03014.54
5.3.250.0000.03714.63
5.3.240.0000.03714.60
5.3.230.0000.03714.52
5.3.220.0000.03714.68
5.3.210.0000.03314.69
5.3.200.0000.03714.52
5.3.190.0000.03714.49
5.3.180.0000.03714.60
5.3.170.0000.04314.54
5.3.160.0030.04014.56
5.3.150.0030.04314.56
5.3.140.0070.07714.54
5.3.130.0000.05714.48
5.3.120.0000.08314.69
5.3.110.0000.04714.50
5.3.100.0030.07713.97
5.3.90.0070.06314.13
5.3.80.0030.06014.11
5.3.70.0030.07014.13
5.3.60.0070.06713.98
5.3.50.0000.07313.95
5.3.40.0030.07714.09
5.3.30.0030.07713.91
5.3.20.0030.05313.81
5.3.10.0070.06713.64
5.3.00.0070.06713.54
5.2.170.0070.04313.34
5.2.160.0030.06013.34
5.2.150.0070.05313.34
5.2.140.0030.06013.34
5.2.130.0000.04313.34
5.2.120.0000.06013.34
5.2.110.0000.04313.34
5.2.100.0070.06013.34
5.2.90.0070.04313.34
5.2.80.0130.05713.34
5.2.70.0000.05313.34
5.2.60.0000.06713.34
5.2.50.0000.06313.34
5.2.40.0070.03013.34
5.2.30.0000.03313.34
5.2.20.0070.05313.34
5.2.10.0070.05713.34
5.2.00.0070.05313.34
5.1.60.0070.04713.34
5.1.50.0100.02713.34
5.1.40.0000.03713.34
5.1.30.0000.04313.34
5.1.20.0000.04013.34
5.1.10.0030.05313.34
5.1.00.0030.05313.34
5.0.50.0000.03013.34
5.0.40.0030.04313.34
5.0.30.0030.05713.34
5.0.20.0000.04013.34
5.0.10.0030.04713.34
5.0.00.0070.06313.34
4.4.90.0000.03313.34
4.4.80.0030.03313.34
4.4.70.0000.03713.34
4.4.60.0030.03013.34
4.4.50.0030.03713.34
4.4.40.0030.03713.34
4.4.30.0000.02313.34
4.4.20.0100.02313.34
4.4.10.0000.03313.34
4.4.00.0030.05313.34
4.3.110.0000.04013.34
4.3.100.0030.03313.34
4.3.90.0000.03313.34
4.3.80.0030.05013.34
4.3.70.0000.03313.34
4.3.60.0030.03313.34
4.3.50.0000.03013.34
4.3.40.0000.05013.34
4.3.30.0030.03713.34
4.3.20.0030.02313.34
4.3.10.0030.03713.34
4.3.00.0030.03313.34

preferences:
66.5 ms | 401 KiB | 5 Q