3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(0); class Foo { public function __toString(): string { return 'foo'; } public function bar(): string { return 'bar'; } } $o = new Foo(); echo "$o->bar() / {$o->bar()}";

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.0120.00916.87
8.3.50.0070.01016.54
8.3.40.0100.00321.72
8.3.30.0120.00618.63
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.180.0180.00025.92
8.2.170.0120.00319.08
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.0060.00320.85
8.2.110.0060.00321.00
8.2.100.0070.00417.91
8.2.90.0040.00417.91
8.2.80.0000.00918.09
8.2.70.0040.00417.80
8.2.60.0040.00417.63
8.2.50.0000.00918.05
8.2.40.0050.00318.34
8.2.30.0040.00417.95
8.2.20.0040.00418.12
8.2.10.0070.00019.20
8.2.00.0040.00419.15
8.1.280.0040.01825.92
8.1.270.0100.00023.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.58
8.1.230.0110.00022.87
8.1.220.0040.00417.76
8.1.210.0050.00318.93
8.1.200.0030.00517.23
8.1.190.0050.00517.23
8.1.180.0100.00018.10
8.1.170.0000.00918.71
8.1.160.0080.00018.94
8.1.150.0000.00718.89
8.1.140.0050.00318.82
8.1.130.0030.00317.36
8.1.120.0000.00717.46
8.1.110.0040.00417.45
8.1.100.0050.00217.46
8.1.90.0000.00817.47
8.1.80.0050.00517.49
8.1.70.0040.00417.48
8.1.60.0000.00817.44
8.1.50.0000.00717.54
8.1.40.0080.00017.43
8.1.30.0000.00817.70
8.1.20.0060.00317.55
8.1.10.0030.00617.61
8.1.00.0030.00517.39
8.0.300.0040.00419.95
8.0.290.0040.00416.75
8.0.280.0000.00718.49
8.0.270.0030.00518.07
8.0.260.0000.00716.93
8.0.250.0000.00816.94
8.0.240.0000.00717.01
8.0.230.0030.00317.00
8.0.220.0030.00316.93
8.0.210.0030.00316.88
8.0.200.0000.00717.04
8.0.190.0060.00316.99
8.0.180.0000.00717.01
8.0.170.0050.00316.87
8.0.160.0040.00416.99
8.0.150.0050.00216.78
8.0.140.0000.00716.96
8.0.130.0000.00613.42
8.0.120.0020.00516.82
8.0.110.0070.00016.95
8.0.100.0000.00716.82
8.0.90.0060.00317.02
8.0.80.0040.01116.91
8.0.70.0040.00416.96
8.0.60.0040.00416.96
8.0.50.0000.00816.82
8.0.30.0160.00617.15
8.0.20.0120.01416.99
8.0.10.0030.00517.01
8.0.00.0110.00816.91
7.4.330.0000.00515.55
7.4.320.0040.00416.54
7.4.300.0060.00016.40
7.4.290.0040.00416.60
7.4.280.0040.00416.49
7.4.270.0040.00416.51
7.4.260.0030.00313.25
7.4.250.0040.00416.50
7.4.240.0070.00016.51
7.4.230.0000.00716.57
7.4.220.0060.00116.64
7.4.210.0070.00916.59
7.4.200.0040.00416.48
7.4.130.0070.01416.44
7.4.120.0090.00916.52
7.4.110.0030.02216.22
7.4.100.0090.01216.54
7.4.90.0120.01216.36
7.4.80.0110.00716.54
7.4.70.0090.01516.56
7.4.60.0040.02116.49
7.4.50.0110.00716.41
7.4.40.0100.01016.41
7.4.30.0080.01116.37
7.4.20.0210.00016.34
7.4.10.0120.00616.32
7.4.00.0110.01416.38
7.3.330.0030.00716.36
7.3.320.0030.00313.27
7.3.310.0070.00016.38
7.3.300.0060.00016.18
7.3.290.0090.00616.24
7.3.260.0140.01216.39
7.3.230.0100.01016.20
7.3.220.0040.01816.23
7.3.210.0040.01516.30
7.3.200.0090.01416.19
7.3.190.0090.00916.13
7.3.180.0120.00916.36
7.3.170.0180.00716.23
7.3.160.0130.00616.13
7.3.150.0090.01216.30
7.3.140.0130.00916.14
7.3.130.0040.01616.30
7.3.120.0130.00516.42
7.3.110.0120.01216.33
7.3.100.0120.01216.18
7.3.90.0070.01116.20
7.3.80.0140.01116.34
7.3.70.0000.01716.27
7.3.60.0140.01016.25
7.3.50.0090.00916.12
7.3.40.0090.00916.42
7.3.30.0100.00716.15
7.3.20.0070.01316.30
7.3.10.1610.00716.35
7.3.00.0140.00716.34
7.2.340.0140.01116.60
7.2.330.0130.01016.71
7.2.320.0080.01416.30
7.2.310.0200.00316.46
7.2.300.0200.00016.46
7.2.290.0090.00916.34
7.2.280.0120.00816.71
7.2.270.0130.00916.66
7.2.260.0060.01216.36
7.2.250.0110.01416.57
7.2.240.0030.01716.54
7.2.230.0100.01016.72
7.2.220.0090.00916.38
7.2.210.0130.00516.38
7.2.200.0160.00316.33
7.2.190.0120.01516.47
7.2.180.0100.01016.51
7.2.170.0030.01516.55
7.2.160.0070.01116.48
7.2.150.0220.00016.61
7.2.140.0120.00816.60
7.2.130.0170.00816.47
7.2.120.0160.00716.68
7.2.110.0170.00416.47
7.2.100.0210.00316.62
7.2.90.0140.01016.42
7.2.80.0140.01416.48
7.2.70.0110.01116.49
7.2.60.0170.00916.46
7.2.50.0130.00516.60
7.2.40.0060.01116.75
7.2.30.0080.01116.59
7.2.20.0130.00816.63
7.2.10.0090.00916.57
7.2.00.0050.01316.46

preferences:
55.72 ms | 401 KiB | 5 Q