3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function name() { return self::class; } } class B extends A {} echo (new A())->name().PHP_EOL; echo (new B())->name().PHP_EOL; class AA { public function name() { return static::class; } } class BA extends AA {} echo (new AA())->name().PHP_EOL; echo (new BA())->name().PHP_EOL;

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.90.0040.00418.45
8.3.80.0050.00518.31
8.3.70.0150.00616.48
8.3.60.0110.01118.20
8.3.50.0140.00522.90
8.3.40.0050.01018.70
8.3.30.0110.00418.77
8.3.20.0040.00420.33
8.3.10.0040.00421.90
8.3.00.0020.00519.02
8.2.210.0070.00726.77
8.2.200.0100.00018.16
8.2.190.0070.00716.58
8.2.180.0070.00716.32
8.2.170.0120.00322.96
8.2.160.0070.00719.33
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0070.00020.38
8.2.120.0050.00226.35
8.2.110.0100.00722.26
8.2.100.0000.01117.78
8.2.90.0080.00019.26
8.2.80.0000.00817.97
8.2.70.0000.00817.50
8.2.60.0060.00317.80
8.2.50.0050.00318.10
8.2.40.0030.00620.46
8.2.30.0030.00619.26
8.2.20.0040.00417.73
8.2.10.0040.00417.95
8.2.00.0040.00418.01
8.1.290.0090.00018.88
8.1.280.0070.00725.92
8.1.270.0040.00423.96
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0040.00421.04
8.1.230.0080.00321.04
8.1.220.0000.00917.74
8.1.210.0030.00618.77
8.1.200.0070.00317.35
8.1.190.0000.00717.23
8.1.180.0000.00818.10
8.1.170.0040.00418.46
8.1.160.0000.00718.93
8.1.150.0000.00818.77
8.1.140.0000.00819.47
8.1.130.0080.00017.52
8.1.120.0000.00717.43
8.1.110.0040.00817.43
8.1.100.0050.00317.46
8.1.90.0050.00317.39
8.1.80.0040.00417.41
8.1.70.0040.00417.38
8.1.60.0050.00317.56
8.1.50.0050.00317.47
8.1.40.0050.00317.40
8.1.30.0030.00617.63
8.1.20.0020.00517.48
8.1.10.0000.00717.49
8.1.00.0040.00417.46
8.0.300.0040.00418.77
8.0.290.0070.00016.58
8.0.280.0030.00318.36
8.0.270.0000.00717.26
8.0.260.0000.00718.43
8.0.250.0030.00316.88
8.0.240.0040.00416.96
8.0.230.0000.00816.86
8.0.220.0040.00416.84
8.0.210.0000.00716.74
8.0.200.0030.00616.78
8.0.190.0070.00416.79
8.0.180.0050.00216.75
8.0.170.0030.00616.84
8.0.160.0060.00316.80
8.0.150.0040.00416.65
8.0.140.0000.00716.79
8.0.130.0000.00513.27
8.0.120.0030.00716.69
8.0.110.0040.00416.88
8.0.100.0030.00416.65
8.0.90.0040.00416.82
8.0.80.0090.01216.84
8.0.70.0020.00516.88
8.0.60.0080.00016.77
8.0.50.0030.00516.66
8.0.30.0120.00617.08
8.0.20.0110.00717.40
8.0.10.0040.00416.95
8.0.00.0060.01216.81
7.4.330.0000.00615.08
7.4.320.0000.00616.40
7.4.300.0000.00616.39
7.4.290.0030.00316.43
7.4.280.0060.00316.46
7.4.270.0030.00316.52
7.4.260.0070.00016.45
7.4.250.0030.00316.33
7.4.240.0000.00716.45
7.4.230.0070.00016.19
7.4.220.0110.00816.55
7.4.210.0060.00916.48
7.4.200.0000.00716.45
7.4.160.0060.00916.46
7.4.150.0110.00717.40
7.4.140.0130.00517.86
7.4.130.0100.00716.44
7.4.120.0110.00516.51
7.4.110.0070.01116.59
7.4.100.0130.01016.52
7.4.90.0120.00616.39
7.4.80.0030.01419.39
7.4.70.0060.01616.48
7.4.60.0100.00616.25
7.4.50.0000.01516.25
7.4.40.0130.00316.30
7.4.30.0100.00716.46
7.4.00.0060.01214.77
7.3.330.0030.00313.16
7.3.320.0000.00613.25
7.3.310.0000.00716.39
7.3.300.0000.00716.18
7.3.290.0030.01716.29
7.3.280.0070.00916.29
7.3.270.0070.01017.40
7.3.260.0080.01316.56
7.3.250.0110.00816.35
7.3.240.0100.00716.52
7.3.230.0100.00716.51
7.3.210.0110.00516.43
7.3.200.0060.01016.17
7.3.190.0070.01016.32
7.3.180.0120.00916.59
7.3.170.0080.00816.46
7.3.160.0060.01016.22
7.3.10.0070.00716.61
7.3.00.0060.00916.26
7.2.330.0070.01016.25
7.2.320.0130.01016.69
7.2.310.0040.01516.60
7.2.300.0070.01116.40
7.2.290.0070.01416.47
7.2.130.0060.00316.76
7.2.120.0070.00716.80
7.2.110.0100.00316.64
7.2.100.0100.00716.97
7.2.90.0090.00616.89
7.2.80.0070.01016.75
7.2.70.0060.00916.83
7.2.60.0040.00816.67
7.2.50.0100.00316.44
7.2.40.0000.00916.81
7.2.30.0030.00616.86
7.2.20.0080.00816.43
7.2.10.0000.00916.83
7.2.00.0060.00617.64
7.1.250.0000.01415.72
7.1.70.0030.00517.22
7.1.60.0110.01419.90
7.1.00.0000.07322.37
7.0.200.0030.00616.75
7.0.70.0230.05319.95
7.0.60.0300.04720.13
7.0.50.0330.04720.41
7.0.40.0270.05320.26
7.0.30.0370.04020.44
7.0.20.0270.05720.38
7.0.10.0200.05720.23
7.0.00.0230.05720.39
5.6.280.0000.07320.79
5.6.220.0170.06320.66
5.6.210.0100.06320.54
5.6.200.0270.05021.04
5.6.190.0130.06321.00
5.6.180.0170.06021.02
5.6.170.0230.05321.18
5.6.160.0270.04721.00
5.6.150.0130.06021.21
5.6.140.0230.05321.17
5.6.130.0100.07021.02
5.6.120.0170.05721.08
5.6.110.0030.07021.08
5.6.100.0170.05721.16
5.6.90.0200.06021.01
5.6.80.0200.05320.45
5.6.70.0230.05020.55
5.6.60.0200.05320.39
5.6.50.0200.05320.49
5.6.40.0100.06320.39
5.6.30.0100.06020.48
5.6.20.0200.05320.52
5.6.10.0200.05020.36
5.6.00.0330.04020.48
5.5.360.0200.05720.40
5.5.350.0230.05320.34
5.5.340.0100.06320.83
5.5.330.0200.05720.95
5.5.320.0170.05720.94
5.5.310.0200.05720.78
5.5.300.0230.05720.94
5.5.290.0100.06020.95
5.5.280.0100.06020.95
5.5.270.0200.05720.91
5.5.260.0200.05720.83
5.5.250.0200.05720.73
5.5.240.0130.06320.34
5.5.230.0230.05320.33
5.5.220.0200.06320.33
5.5.210.0200.05320.20
5.5.200.0200.05320.29
5.5.190.0200.06020.32
5.5.180.0230.05020.25
5.5.160.0130.05720.18
5.5.150.0170.05720.34
5.5.140.0300.04320.24
5.5.130.0170.05720.28
5.5.120.0230.04720.16
5.5.110.0200.05320.27
5.5.100.0230.05020.24
5.5.90.0170.05720.23
5.5.80.0200.05020.13
5.5.70.0200.05320.01
5.5.60.0200.05020.16
5.5.50.0200.05020.11
5.5.40.0200.05020.14
5.5.30.0200.05020.11
5.5.20.0200.05320.14
5.5.10.0070.06720.19
5.5.00.0170.06320.02

preferences:
29.72 ms | 401 KiB | 5 Q