3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static $bar = 'foo'; } class Qux { public $foo; public function render(): string { $this->foo = Foo::class; return $this->foo::$bar; } } $qux = new Qux; var_dump($qux->render());

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.4.20.0050.00320.76
8.4.10.0040.00418.72
8.3.160.0110.00716.74
8.3.150.0100.01017.06
8.3.140.0040.00416.66
8.3.130.0030.00618.46
8.3.120.0060.00318.70
8.3.110.0170.00320.94
8.3.100.0030.00516.77
8.3.90.0030.01726.77
8.3.80.0060.00319.36
8.3.70.0060.01216.63
8.3.60.0130.00718.32
8.3.50.0030.01716.46
8.3.40.0070.01118.77
8.3.30.0130.00718.57
8.3.20.0040.00424.18
8.3.10.0050.00324.66
8.3.00.0000.00826.16
8.2.270.0060.01216.39
8.2.260.0030.00618.73
8.2.250.0030.00518.28
8.2.240.0030.00618.85
8.2.230.0090.00022.58
8.2.220.0060.00324.06
8.2.210.0110.00726.77
8.2.200.0030.00618.88
8.2.190.0040.01116.58
8.2.180.0000.01525.92
8.2.170.0040.01418.80
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0070.00024.66
8.2.130.0000.00726.16
8.2.120.0040.00420.47
8.2.110.0100.00022.13
8.2.100.0040.00817.84
8.2.90.0050.00317.91
8.2.80.0000.00818.95
8.2.70.0100.00017.61
8.2.60.0050.00318.16
8.2.50.0040.00418.05
8.2.40.0060.00318.16
8.2.30.0040.00417.89
8.2.20.0000.00717.87
8.2.10.0040.00419.09
8.2.00.0000.00719.26
8.1.310.0060.00316.88
8.1.300.0040.00416.33
8.1.290.0000.00930.84
8.1.280.0100.00725.92
8.1.270.0070.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0050.00324.02
8.1.230.0070.00422.78
8.1.220.0030.00517.74
8.1.210.0060.00318.77
8.1.200.0030.00617.36
8.1.190.0060.00317.23
8.1.180.0080.00018.10
8.1.170.0080.00018.56
8.1.160.0000.00719.00
8.1.150.0040.00418.88
8.1.140.0070.00018.91
8.1.130.0030.00320.23
8.1.120.0030.00317.38
8.1.110.0000.00717.28
8.1.100.0070.00017.40
8.1.90.0030.00617.32
8.1.80.0000.00717.28
8.1.70.0030.00317.33
8.1.60.0040.00417.45
8.1.50.0060.00317.57
8.1.40.0020.00517.38
8.1.30.0060.00317.48
8.1.20.0000.00817.55
8.1.10.0030.00517.48
8.1.00.0040.00417.45
8.0.300.0030.00320.14
8.0.290.0000.00816.63
8.0.280.0030.00318.26
8.0.270.0030.00318.01
8.0.260.0040.00418.68
8.0.250.0030.00316.78
8.0.240.0040.00416.79
8.0.230.0000.00716.79
8.0.220.0000.00716.79
8.0.210.0040.00416.80
8.0.200.0030.00316.88
8.0.190.0040.00416.82
8.0.180.0000.00716.84
8.0.170.0030.00616.86
8.0.160.0030.00716.87
8.0.150.0070.00016.82
8.0.140.0070.00016.82
8.0.130.0030.00313.34
8.0.120.0050.00216.70
8.0.110.0040.00416.70
8.0.100.0040.00416.86
8.0.90.0050.00216.89
8.0.80.0040.00416.64
8.0.70.0000.00716.73
8.0.60.0000.00716.81
8.0.50.0040.00416.86
8.0.30.0000.00716.78
8.0.20.0000.00716.88
8.0.10.0000.00716.83
8.0.00.0000.00816.79
7.4.330.0020.00215.55
7.4.320.0070.00016.54
7.4.300.0000.00616.43
7.4.290.0070.00016.34
7.4.280.0050.00216.54
7.4.270.0060.00016.49
7.4.260.0050.00013.29
7.4.250.0070.00016.46
7.4.240.0030.00516.56
7.4.230.0030.00316.34
7.4.220.0030.00316.70
7.4.210.0040.00416.39
7.4.200.0030.00316.58
7.4.190.0070.00016.54
7.4.180.0000.00716.75
7.4.160.0070.00016.50
7.4.150.0000.00716.55
7.4.140.0000.00716.37
7.4.130.0000.00716.33
7.4.120.0030.00316.26
7.4.110.0000.00816.45
7.4.100.0050.00316.50
7.4.90.0000.00716.66
7.4.80.0080.00016.63
7.4.70.0030.00316.43
7.4.60.0070.00016.37
7.4.50.0000.00716.35
7.4.40.0030.00316.43
7.4.30.0000.00716.28
7.4.20.0040.00416.64
7.4.10.0030.00316.19
7.4.00.0030.00316.34
7.3.330.0080.00016.20
7.3.320.0040.00413.33
7.3.310.0050.00316.29
7.3.300.0000.00716.18
7.3.290.0040.00416.35
7.3.280.0000.00716.18
7.3.270.0070.00016.31
7.3.260.0000.00716.32
7.3.250.0060.00016.32
7.3.240.0030.00316.25
7.3.230.0030.00316.32
7.3.220.0070.00016.26
7.3.210.0040.00416.30
7.3.200.0000.00616.20
7.3.190.0030.00316.11
7.3.180.0030.00316.26
7.3.170.0030.00316.20
7.3.160.0030.00316.21
7.3.150.0040.00416.06
7.3.140.0050.00316.26
7.3.130.0030.00316.22
7.3.120.0000.00716.25
7.3.110.0060.00016.14
7.3.100.0000.00716.16
7.3.90.0040.00416.33
7.3.80.0000.00616.14
7.3.70.0050.00216.37
7.3.60.0000.00716.29
7.3.50.0000.00716.46
7.3.40.0000.00716.45
7.3.30.0030.00316.43
7.3.20.0030.00318.25
7.3.10.0020.00518.10
7.3.00.0080.00018.10

preferences:
118.84 ms | 403 KiB | 5 Q