3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Вендорский неймспейс class ShitClass { public function doShitStuff(string $thing) : string { return 'говно'; } } // Наш неймспейс interface MyGoodInterface { public function doCandyStuff(string $thing) : string; } // Наш неймспейс class MyGoodClass extends ShitCLass implements MyGoodInterface { public function doCandyStuff(string $thing) : string { return $this->doShitStuff($thing) . ', но сладкое'; } } $goodObject = new MyGoodClass; echo 'Я съел ' . $goodObject->doCandyStuff('сахар') . 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.4.120.0140.00224.02
8.4.110.0100.00620.59
8.4.100.0120.00717.95
8.4.90.0130.00817.82
8.4.80.0080.01117.70
8.4.70.0130.01017.69
8.4.60.0160.01018.95
8.4.50.0120.00718.85
8.4.40.0090.00017.86
8.4.30.0100.01020.20
8.4.20.0100.01017.82
8.4.10.0110.00719.30
8.3.250.0100.00918.82
8.3.240.0110.00717.31
8.3.230.0130.00716.61
8.3.220.0120.00616.54
8.3.210.0110.00716.64
8.3.200.0080.00416.60
8.3.190.0120.00717.28
8.3.180.0130.00616.88
8.3.170.0040.01420.55
8.3.160.0150.00317.18
8.3.150.0110.00717.12
8.3.140.0120.00318.09
8.3.130.0030.00816.68
8.3.120.0080.00018.80
8.3.110.0050.00316.49
8.3.100.0080.00024.06
8.3.90.0060.00926.77
8.3.80.0090.00016.50
8.3.70.0180.00416.75
8.3.60.0090.00616.63
8.3.50.0060.01023.65
8.3.40.0110.01118.75
8.3.30.0150.00018.64
8.3.20.0000.00820.91
8.3.10.0030.00521.73
8.3.00.0050.00321.95
8.2.290.0110.00920.26
8.2.280.0050.00618.27
8.2.270.0120.00317.17
8.2.260.0050.00316.75
8.2.250.0050.00318.55
8.2.240.0040.00419.12
8.2.230.0090.00020.94
8.2.220.0030.00537.54
8.2.210.0150.00326.77
8.2.200.0060.00316.75
8.2.190.0110.00718.28
8.2.180.0120.00316.50
8.2.170.0040.01122.96
8.2.160.0100.00320.47
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00426.16
8.2.110.0030.00620.52
8.2.100.0040.00717.78
8.2.90.0000.00818.34
8.2.80.0030.00618.34
8.2.70.0000.00817.50
8.2.60.0050.00317.75
8.2.50.0000.00817.63
8.2.40.0050.00317.93
8.2.30.0000.00719.45
8.2.20.0040.00418.03
8.2.10.0040.00419.28
8.2.00.0040.00419.16
8.1.330.0070.01216.64
8.1.320.0110.00916.20
8.1.310.0130.00618.61
8.1.300.0040.01118.45
8.1.290.0030.00618.88
8.1.280.0060.01025.92
8.1.270.0030.00522.05
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.51
8.1.230.0080.00421.04
8.1.220.0060.00317.79
8.1.210.0090.00018.77
8.1.200.0060.00317.35
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0080.00017.62
8.1.160.0000.00818.90
8.1.150.0040.00418.95
8.1.140.0070.00020.70
8.1.130.0040.00420.25
8.1.120.0030.00317.48
8.1.110.0030.00717.48
8.1.100.0060.00317.43
8.1.90.0100.00017.49
8.1.80.0060.00317.48
8.1.70.0030.00317.51
8.1.60.0000.00817.50
8.1.50.0030.00517.57
8.1.40.0000.00917.54
8.1.30.0030.00517.67
8.1.20.0040.00417.67
8.1.10.0000.00717.62
8.1.00.0000.00717.54
8.0.300.0050.00319.90
8.0.290.0060.00316.75
8.0.280.0030.00318.38
8.0.270.0000.00718.06
8.0.260.0060.00020.02
8.0.250.0070.00317.03
8.0.240.0040.00416.96
8.0.230.0000.00716.94
8.0.220.0000.00716.90
8.0.210.0000.00616.92
8.0.200.0000.00616.95
8.0.190.0040.00417.02
8.0.180.0040.00416.83
8.0.170.0080.00016.94
8.0.160.0050.00216.95
8.0.150.0080.00016.80
8.0.140.0040.00416.83
8.0.130.0030.00313.29
8.0.120.0000.00716.91
8.0.110.0030.00416.81
8.0.100.0060.00316.78
8.0.90.0060.00316.93
8.0.80.0100.00616.91
8.0.70.0070.00016.83
8.0.60.0040.00416.90
8.0.50.0040.00416.77
8.0.30.0170.00017.07
8.0.20.0070.01117.38
8.0.10.0080.00016.89
8.0.00.0090.00916.75
7.4.330.0020.00216.66
7.4.320.0000.00616.54
7.4.300.0100.00016.42
7.4.290.0040.00416.43
7.4.280.0030.00516.62
7.4.270.0030.00316.60
7.4.260.0000.00513.30
7.4.250.0030.00316.59
7.4.240.0040.00316.49
7.4.230.0030.00516.40
7.4.220.0060.00116.61
7.4.210.0070.01316.57
7.4.200.0070.00016.44
7.4.130.0130.00816.51
7.4.120.0030.01416.42
7.4.110.0000.01716.35
7.4.100.0130.00616.53
7.4.90.0130.00316.52
7.4.80.0130.01019.39
7.4.70.0080.00816.41
7.4.60.0000.01616.43
7.4.50.0110.00716.59
7.4.40.0100.00716.52
7.4.20.0090.00716.18
7.4.10.0130.00716.39
7.4.00.0060.01016.64
7.3.330.0000.00716.17
7.3.320.0060.00013.31
7.3.310.0040.00416.30
7.3.300.0050.00216.27
7.3.290.0100.00616.31
7.3.280.0060.00916.32
7.3.260.0110.00716.28
7.3.230.0040.01216.71
7.3.210.0140.00316.27
7.3.200.0110.00516.29
7.3.190.0100.00716.59
7.3.180.0130.00716.61
7.3.170.0110.00616.41
7.3.160.0120.00416.49
7.3.130.0060.00916.61
7.3.120.0080.00816.04
7.3.110.0060.01015.97
7.3.100.0090.00615.91
7.3.90.0120.00316.03
7.3.80.0040.01116.01
7.3.70.0030.01616.11
7.3.60.0140.00715.90
7.3.50.0030.01716.11
7.3.40.0060.00916.32
7.3.30.0090.00616.32
7.3.20.0120.00316.50
7.3.10.0090.00616.27
7.3.00.0150.00316.38
7.2.330.0140.00716.80
7.2.320.0100.00616.48
7.2.310.0120.00916.65
7.2.300.0070.01016.79
7.2.290.0070.01016.78
7.2.260.0120.00916.51
7.2.250.0140.00316.32
7.2.240.0000.01616.48
7.2.230.0120.00316.36
7.2.220.0100.00616.51
7.2.210.0000.01516.57
7.2.200.0140.00716.47
7.2.190.0080.01216.50
7.2.180.0140.00416.22
7.2.170.0100.00716.58
7.2.160.0110.00416.65
7.2.150.0070.01016.72
7.2.140.0170.00016.48
7.2.130.0070.01416.58
7.2.120.0140.01716.51
7.2.110.0130.00316.47
7.2.100.0060.00916.57
7.2.90.0090.00916.64
7.2.80.0100.00716.48
7.2.70.0030.01316.62
7.2.60.0100.00616.53
7.2.50.0060.01016.71
7.2.40.0090.00616.54
7.2.30.0030.01316.70
7.2.20.0140.01416.55
7.2.10.0090.00616.42
7.2.00.0030.01316.63

preferences:
131.94 ms | 406 KiB | 6 Q