3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public function something() { echo __CLASS__; // foo var_dump($this); } } class foo_bar extends foo { public function something() { echo __CLASS__; // foo_bar var_dump($this); } } class foo_bar_baz extends foo_bar { public function something() { echo __CLASS__; // foo_bar_baz var_dump($this); } public function call() { echo self::something(); // self echo parent::something(); // parent echo foo::something(); // grandparent } } error_reporting(-1); $obj = new foo_bar_baz(); $obj->call(); // Output similar to: // foo_bar_baz // object(foo_bar_baz)[1] // foo_bar // object(foo_bar_baz)[1] // foo // object(foo_bar_baz)[1] ?>

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.01018.67
8.3.30.0110.00318.75
8.3.20.0080.00020.34
8.3.10.0000.00823.42
8.3.00.0080.00019.26
8.2.170.0090.00622.96
8.2.160.0120.00619.21
8.2.150.0030.00524.18
8.2.140.0000.00724.66
8.2.130.0000.00826.16
8.2.120.0040.00419.84
8.2.110.0060.00321.02
8.2.100.0110.00017.72
8.2.90.0080.00017.63
8.2.80.0030.00518.78
8.2.70.0040.00417.38
8.2.60.0060.00318.04
8.2.50.0060.00318.10
8.2.40.0070.00020.42
8.2.30.0040.00419.22
8.2.20.0040.00417.68
8.2.10.0000.00717.94
8.2.00.0090.00017.95
8.1.270.0040.00423.96
8.1.260.0030.00526.35
8.1.250.0050.00328.09
8.1.240.0090.00023.86
8.1.230.0080.00320.89
8.1.220.0040.00418.59
8.1.210.0000.00818.77
8.1.200.0000.00817.23
8.1.190.0000.00817.22
8.1.180.0030.00618.10
8.1.170.0030.00518.59
8.1.160.0040.00422.67
8.1.150.0000.00718.89
8.1.140.0090.00019.56
8.1.130.0030.00317.69
8.1.120.0000.00717.36
8.1.110.0040.00417.32
8.1.100.0000.00817.30
8.1.90.0050.00217.41
8.1.80.0000.00717.36
8.1.70.0000.00717.44
8.1.60.0000.00817.61
8.1.50.0040.00417.50
8.1.40.0040.00417.54
8.1.30.0000.00917.57
8.1.20.0040.00417.72
8.1.10.0050.00317.55
8.1.00.0040.00417.50
8.0.300.0000.00720.03
8.0.290.0050.00316.75
8.0.280.0000.00718.37
8.0.270.0000.00817.23
8.0.260.0000.00618.36
8.0.250.0030.00316.90
8.0.240.0080.00016.95
8.0.230.0030.00716.93
8.0.220.0030.00316.85
8.0.210.0030.00516.86
8.0.200.0040.00416.88
8.0.190.0040.00416.90
8.0.180.0080.00016.84
8.0.170.0050.00216.77
8.0.160.0070.00016.83
8.0.150.0040.00416.77
8.0.140.0070.00016.79
8.0.130.0000.00513.30
8.0.120.0080.00016.84
8.0.110.0000.00816.81
8.0.100.0040.00416.88
8.0.90.0040.00416.88
8.0.80.0000.01616.76
8.0.70.0040.00416.61
8.0.60.0050.00216.85
8.0.50.0040.00416.77
8.0.30.0130.00616.95
8.0.20.0110.00917.40
8.0.10.0050.00216.81
8.0.00.0110.01416.73
7.4.330.0050.00015.08
7.4.320.0060.00016.55
7.4.300.0070.00016.48
7.4.290.0070.00316.48
7.4.280.0050.00216.55
7.4.270.0030.00316.46
7.4.260.0030.00316.48
7.4.250.0040.00416.39
7.4.240.0040.00416.49
7.4.230.0000.00716.70
7.4.220.0110.01416.45
7.4.210.0030.01216.64
7.4.200.0040.00416.49
7.4.160.0090.00616.55
7.4.150.0100.01417.40
7.4.140.0110.01117.86
7.4.130.0060.01416.59
7.4.120.0110.00816.50
7.4.110.0130.00616.43
7.4.100.0070.01016.59
7.4.90.0090.00916.58
7.4.80.0040.01319.39
7.4.70.0070.01016.50
7.4.60.0120.00316.53
7.4.50.0070.01116.32
7.4.40.0060.01216.69
7.4.30.0060.00916.61
7.4.00.0040.01314.82
7.3.330.0070.00013.16
7.3.320.0030.00313.21
7.3.310.0030.00316.28
7.3.300.0030.00316.23
7.3.290.0090.00616.23
7.3.280.0090.01016.23
7.3.270.0140.00417.40
7.3.260.0110.00616.36
7.3.250.0120.00716.33
7.3.240.0100.00616.26
7.3.230.0030.01516.42
7.3.210.0100.00716.20
7.3.200.0100.00616.30
7.3.190.0100.00616.57
7.3.180.0090.00816.46
7.3.170.0120.00616.46
7.3.160.0100.00716.43
7.2.330.0140.01116.43
7.2.320.0070.01716.73
7.2.310.0060.01916.71
7.2.300.0030.01416.75
7.2.290.0170.00016.57
7.2.80.0110.00416.57
7.2.00.0110.00719.54
7.1.200.0030.00915.86
7.1.70.0090.00017.15
7.1.60.0060.00619.90
7.1.00.0070.07022.28
7.0.200.0000.00716.81
7.0.80.0130.05320.01
7.0.70.1270.06019.93
7.0.60.1400.04319.99
7.0.50.1500.05720.41
7.0.40.1170.06020.30
7.0.30.1230.06020.40
7.0.20.1200.05720.36
7.0.10.1330.04720.37
7.0.00.1230.06320.41
5.6.280.0030.07320.82
5.6.230.0630.06020.61
5.6.220.1000.06320.66
5.6.210.1000.07020.76
5.6.200.1000.06321.08
5.6.190.1170.04721.08
5.6.180.1030.05721.12
5.6.170.1000.05721.03
5.6.160.0830.07021.10
5.6.150.1030.05021.03
5.6.140.0970.05721.09
5.6.130.1030.07021.03
5.6.120.0130.05721.21
5.6.110.0530.05321.13
5.6.100.1000.06021.06
5.6.90.1000.05321.01
5.6.80.0970.06020.46
5.6.70.1070.08020.55
5.6.60.1070.04720.48
5.6.50.1070.04720.41
5.6.40.0970.06320.43
5.6.30.0970.05320.39
5.6.20.1000.05720.38
5.6.10.0930.05720.46
5.6.00.1030.05720.37
5.5.370.0170.05020.46
5.5.360.1000.06320.52
5.5.350.1270.07020.46
5.5.340.1000.05720.85
5.5.330.1200.06020.90
5.5.320.1100.04720.94
5.5.310.1130.05720.89
5.5.300.1100.06020.89
5.5.290.1030.05020.98
5.5.280.0100.06020.97
5.5.270.1170.04720.93
5.5.260.1030.05320.96
5.5.250.1000.05320.65
5.5.240.0970.05320.27
5.5.230.1070.05020.07
5.5.220.1070.05020.23
5.5.210.0900.06320.27
5.5.200.1070.04720.14
5.5.190.1230.06020.32
5.5.180.1070.04720.28
5.5.160.1170.04020.28
5.5.150.1100.05720.19
5.5.140.1070.05020.25
5.5.130.1030.04720.31
5.5.120.0900.06020.32
5.5.110.1030.06020.29
5.5.100.1030.05320.09
5.5.90.1100.05720.10
5.5.80.1000.05020.01
5.5.70.1070.05320.13
5.5.60.1070.05320.07
5.5.50.1300.06720.19
5.5.40.1100.05020.13
5.5.30.1070.06720.06
5.5.20.1170.05720.00
5.5.10.1100.04719.94
5.5.00.1070.05020.15

preferences:
55.67 ms | 400 KiB | 5 Q