3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function fooMethod() { if (isset($this)) { echo get_class($this); } else { echo "no \$this"; } } } class Bar { function barMethod() { Foo::fooMethod(); } } $bar = new Bar; $bar->barMethod();

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.0090.00918.68
8.3.50.0140.00821.13
8.3.40.0120.00318.69
8.3.30.0060.00918.54
8.3.20.0050.00320.13
8.3.10.0000.00821.73
8.3.00.0040.00417.93
8.2.180.0120.00318.54
8.2.170.0130.00722.96
8.2.160.0100.00320.38
8.2.150.0090.00024.18
8.2.140.0060.00324.66
8.2.130.0000.00726.16
8.2.120.0060.00317.50
8.2.110.0070.00420.94
8.2.100.0040.00817.78
8.2.90.0090.00019.09
8.2.80.0060.00317.97
8.2.70.0000.00817.63
8.2.60.0040.00417.91
8.2.50.0050.00318.07
8.2.40.0000.00719.35
8.2.30.0000.00720.55
8.2.20.0040.00417.56
8.2.10.0060.00317.88
8.2.00.0000.00717.98
8.1.280.0030.01425.92
8.1.270.0050.00323.84
8.1.260.0150.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00321.23
8.1.230.0080.00317.45
8.1.220.0040.00417.74
8.1.210.0040.00718.77
8.1.200.0070.00217.35
8.1.190.0030.00517.11
8.1.180.0040.00418.10
8.1.170.0040.00418.49
8.1.160.0070.00021.86
8.1.150.0000.00718.83
8.1.140.0040.00417.30
8.1.130.0030.00317.67
8.1.120.0030.00317.30
8.1.110.0040.00417.45
8.1.100.0000.00717.23
8.1.90.0040.00417.41
8.1.80.0000.00817.31
8.1.70.0000.00717.48
8.1.60.0040.00417.50
8.1.50.0080.00417.54
8.1.40.0040.00417.44
8.1.30.0030.00617.70
8.1.20.0040.00417.58
8.1.10.0070.00017.48
8.1.00.0040.00417.43
8.0.300.0020.00518.77
8.0.290.0040.00416.75
8.0.280.0000.00718.37
8.0.270.0030.00317.20
8.0.260.0060.00017.30
8.0.250.0000.00816.96
8.0.240.0000.00816.96
8.0.230.0030.00316.95
8.0.220.0000.00916.91
8.0.210.0070.00016.86
8.0.200.0060.00016.86
8.0.190.0070.00316.96
8.0.180.0040.00416.92
8.0.170.0080.00016.92
8.0.160.0000.00716.90
8.0.150.0070.00016.82
8.0.140.0080.00316.81
8.0.130.0030.00313.30
8.0.120.0000.00816.71
8.0.110.0080.00016.90
8.0.100.0040.00416.78
8.0.90.0030.00316.73
8.0.80.0120.00816.91
8.0.70.0000.00816.88
8.0.60.0000.00716.78
8.0.50.0070.00016.93
8.0.30.0100.00817.11
8.0.20.0130.00917.40
8.0.10.0040.00416.96
8.0.00.0120.01016.72
7.4.330.0030.00315.08
7.4.320.0030.00316.36
7.4.300.0030.00616.48
7.4.290.0030.00516.50
7.4.280.0040.00416.41
7.4.270.0000.00716.52
7.4.260.0040.00416.56
7.4.250.0000.00716.48
7.4.240.0020.00516.46
7.4.230.0040.00416.49
7.4.220.0150.00316.64
7.4.210.0090.00616.57
7.4.200.0000.00716.60
7.4.160.0130.00316.52
7.4.150.0070.01017.40
7.4.140.0160.00317.86
7.4.130.0060.01116.47
7.4.120.0090.00716.61
7.4.110.0120.00816.54
7.4.100.0110.01216.61
7.4.90.0060.01316.70
7.4.80.0140.00419.39
7.4.70.0030.01316.36
7.4.60.0060.01016.61
7.4.50.0030.00516.59
7.4.40.0150.00316.39
7.4.30.0060.01216.41
7.4.00.0150.00015.17
7.3.330.0000.00613.23
7.3.320.0000.00513.30
7.3.310.0070.00016.12
7.3.300.0070.00016.22
7.3.290.0090.00716.28
7.3.280.0100.00616.25
7.3.270.0090.00917.40
7.3.260.0130.00616.31
7.3.250.0080.00816.39
7.3.240.0100.01016.37
7.3.230.0100.00716.39
7.3.210.0080.00816.41
7.3.200.0160.00416.43
7.3.190.0080.01216.32
7.3.180.0140.00316.46
7.3.170.0130.00616.36
7.3.160.0060.01416.54
7.2.330.0120.00616.48
7.2.320.0090.01616.79
7.2.310.0080.00816.64
7.2.300.0080.00816.77
7.2.290.0100.00716.49
7.2.60.0080.00416.98
7.1.200.0080.00815.70
7.1.70.0000.00717.00
7.1.60.0070.01719.19
7.1.50.0030.01616.62
7.1.00.0100.06722.31
7.0.200.0040.00416.60
7.0.60.0100.05320.06
7.0.50.0030.05017.84
7.0.40.0070.08019.96
7.0.30.0270.06720.30
7.0.20.0470.06720.16
7.0.10.0130.07320.10
7.0.00.0070.04720.19
5.6.210.0030.08320.60
5.6.200.0030.04318.16
5.6.190.0130.08720.47
5.6.180.0430.06320.68
5.6.170.0270.05020.55
5.6.160.0030.04720.52
5.6.150.0130.07318.27
5.6.140.0000.07318.16
5.6.130.0100.06318.17
5.6.120.0070.06321.10
5.6.110.0070.08721.11
5.6.100.0130.04320.89
5.6.90.0100.08320.99
5.6.80.0130.04320.39
5.5.350.0030.07020.42
5.5.340.0070.08317.99
5.5.330.0030.04320.27
5.5.320.2770.03320.24
5.5.310.0370.07720.32
5.5.300.0170.07317.99
5.5.290.0030.04717.97
5.5.280.0100.08020.88
5.5.270.0070.07320.84
5.5.260.0070.04020.76
5.5.250.0170.08320.78
5.5.240.0070.06720.25
5.4.450.0170.08319.48
5.4.440.0200.05019.63
5.4.430.0170.05019.38
5.4.420.0100.05719.57
5.4.410.0270.05319.06
5.4.400.0130.04719.28
5.4.390.0100.05319.30
5.4.380.0100.05019.29
5.4.370.0130.04719.23
5.4.360.0070.05719.06
5.4.350.0100.05019.01
5.4.340.0170.06019.14
5.4.320.0200.06019.24
5.4.310.0100.05019.26
5.4.300.0100.05019.32
5.4.290.0070.05718.97
5.4.280.0170.05318.98
5.4.270.0100.05019.25
5.4.260.0070.06718.86
5.4.250.0100.05019.25
5.4.240.0100.05719.21
5.4.230.0200.05019.27
5.4.220.0070.06018.98
5.4.210.0130.05019.12
5.4.200.0130.05318.98
5.4.190.0100.07019.40
5.4.180.0230.04719.26
5.4.170.0170.07019.27
5.4.160.0200.04319.15
5.4.150.0200.04719.23
5.4.140.0130.05016.61
5.4.130.0200.04716.56
5.4.120.0200.04016.35
5.4.110.0100.05716.23
5.4.100.0100.05316.70
5.4.90.0100.05016.30
5.4.80.0070.05316.46
5.4.70.0170.03016.39
5.4.60.0300.03716.34
5.4.50.0030.05016.33
5.4.40.0330.05316.43
5.4.30.0270.03016.25
5.4.20.0200.03316.48

preferences:
96.43 ms | 401 KiB | 5 Q