3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_exception_handler(function (Throwable $exception) { var_dump($exception->getTrace()); }); class Foo { private $foo; public function __toString() { return $this->foo; } } sprintf('%s', new Foo());

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.5.30.0090.00818.68
8.5.20.0090.01119.63
8.5.10.0030.00620.43
8.5.00.0120.01119.93
8.4.180.0130.01119.73
8.4.170.0140.00823.95
8.4.160.0130.00923.13
8.4.150.0020.00014.05
8.4.140.0160.00717.62
8.4.130.0140.00717.82
8.4.120.0130.00720.76
8.4.110.0120.00922.39
8.4.100.0060.00317.70
8.4.90.0050.00418.59
8.4.80.0130.00818.82
8.4.70.0100.00819.00
8.4.60.0050.00320.45
8.4.50.0130.00818.60
8.4.40.0100.00017.67
8.4.30.0100.00018.65
8.4.20.0100.01018.02
8.4.10.0040.01217.69
8.3.300.0120.00819.07
8.3.290.0080.01420.72
8.3.280.0090.01118.46
8.3.270.0090.01216.54
8.3.260.0080.00816.47
8.3.250.0120.00818.86
8.3.240.0040.00516.54
8.3.230.0050.01116.41
8.3.220.0030.00418.86
8.3.210.0150.00416.55
8.3.200.0110.00716.60
8.3.190.0110.00717.11
8.3.180.0060.00418.96
8.3.170.0140.00418.45
8.3.160.0150.00317.29
8.3.150.0170.00017.16
8.3.140.0070.00318.97
8.3.130.0060.00318.57
8.3.120.0060.00320.82
8.3.110.0140.00720.94
8.3.100.0050.00524.06
8.3.90.0040.00426.77
8.3.80.0040.00416.63
8.3.70.0060.00916.58
8.3.60.0110.00816.88
8.3.50.0030.01019.68
8.3.40.0000.01520.34
8.3.30.0000.01418.86
8.3.20.0000.00824.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.300.0140.00620.27
8.2.290.0100.00920.34
8.2.280.0090.00518.50
8.2.270.0150.00418.64
8.2.260.0050.00316.77
8.2.250.0130.00316.76
8.2.240.0080.00017.29
8.2.230.0090.00022.58
8.2.220.0060.00337.54
8.2.210.0050.00326.77
8.2.200.0060.00316.75
8.2.190.0170.00316.63
8.2.180.0110.00725.92
8.2.170.0040.01119.09
8.2.160.0110.00422.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.95
8.2.110.0000.01022.29
8.2.100.0090.00318.03
8.2.90.0000.00822.23
8.2.80.0030.00617.97
8.2.70.0030.00518.03
8.2.60.0060.00318.05
8.2.50.0030.00618.10
8.2.40.0030.00618.22
8.2.30.0040.00418.10
8.2.20.0080.00020.39
8.2.10.0080.00017.80
8.2.00.0000.01019.31
8.1.340.0120.00917.86
8.1.330.0110.00721.85
8.1.320.0090.01216.36
8.1.310.0150.00316.26
8.1.300.0070.01319.93
8.1.290.0000.01230.84
8.1.280.0090.00625.92
8.1.270.0040.00423.99
8.1.260.0060.00326.35
8.1.250.0000.00728.09
8.1.240.0060.00320.39
8.1.230.0040.00817.42
8.1.220.0000.00817.74
8.1.210.0040.00418.95
8.1.200.0040.00417.23
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0040.00418.71
8.1.160.0040.00418.79
8.1.150.0060.00318.58
8.1.140.0000.00817.43
8.1.130.0000.00718.70
8.1.120.0050.00217.34
8.1.110.0090.00017.28
8.1.100.0030.00717.39
8.1.90.0000.00717.43
8.1.80.0050.00517.38
8.1.70.0000.00717.44
8.1.60.0030.00617.53
8.1.50.0030.00517.52
8.1.40.0000.00717.34
8.1.30.0030.00517.55
8.1.20.0040.00417.62
8.1.10.0230.00417.42
8.1.00.0200.00817.21
8.0.300.0080.00019.98
8.0.290.0000.00816.63
8.0.280.0050.00518.54
8.0.270.0030.00518.17
8.0.260.0040.00418.43
8.0.250.0000.00717.02
8.0.240.0080.00016.90
8.0.230.0030.00317.04
8.0.220.0030.00316.95
8.0.210.0040.00416.98
8.0.200.0040.00417.00
8.0.190.0040.00416.91
8.0.180.0040.00417.01
8.0.170.0040.00416.83
8.0.160.0030.00516.91
8.0.150.0070.00016.84
8.0.140.0140.00616.71
8.0.130.0120.00816.68
8.0.120.0140.00716.77
8.0.110.0200.00016.70
8.0.100.0160.00416.79
8.0.90.0180.00316.85
8.0.80.0140.00716.75
8.0.70.0170.00316.88
8.0.60.0210.00016.90
8.0.50.0200.00316.79
8.0.30.0070.01516.88
8.0.20.0200.00016.88
8.0.10.0170.00316.89
7.4.330.0000.00515.55
7.4.320.0000.00716.34
7.4.300.0060.00016.54
7.4.290.0050.00316.35
7.4.280.0070.00016.52
7.4.270.0200.00316.48
7.4.260.0220.00016.25
7.4.250.0260.00016.30
7.4.240.0210.00716.32
7.4.230.0220.00316.42
7.4.220.0210.00016.46
7.4.210.0200.00016.29
7.4.200.0110.01116.39
7.4.190.0230.00016.36
7.4.180.0170.00316.51
7.4.160.0150.00416.47
7.4.150.0160.00516.33
7.4.140.0160.00316.31
7.4.130.0180.00416.36
7.4.120.0250.00016.30
7.4.110.0180.00316.18
7.4.100.0190.00016.47
7.4.90.0190.00016.28
7.4.80.0160.00316.41
7.4.70.0200.00016.29
7.4.60.0160.00416.29
7.4.50.0120.00816.21
7.4.40.0180.00016.32
7.4.30.0110.00816.31
7.4.20.0130.00716.27
7.4.10.0110.00816.38
7.4.00.0170.00316.36

preferences:
36 ms | 403 KiB | 5 Q