3v4l.org

run code in 300+ PHP versions simultaneously
<?php class SomeException extends \Exception { public function __toString() { return 'a'; } } $a = new SomeException(); echo (string) $a;

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.40.0140.00018.67
8.3.30.0070.00718.44
8.3.20.0080.00020.73
8.3.10.0040.00423.70
8.3.00.0070.00023.61
8.2.170.0060.00922.96
8.2.160.0070.00722.08
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0070.00026.16
8.2.110.0040.00422.14
8.2.100.0060.00619.52
8.2.90.0050.00317.75
8.2.80.0080.00018.82
8.2.70.0060.00317.63
8.2.60.0030.00517.63
8.2.50.0030.00518.05
8.2.40.0040.00418.22
8.2.30.0030.00618.00
8.2.20.0060.00318.04
8.2.10.0050.00219.28
8.2.00.0040.00419.23
8.1.270.0080.00022.02
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0030.00719.40
8.1.230.0110.00020.90
8.1.220.0050.00318.53
8.1.210.0030.00518.77
8.1.200.0100.00017.35
8.1.190.0000.00817.13
8.1.180.0000.00818.10
8.1.170.0020.00517.62
8.1.160.0050.00318.88
8.1.150.0040.00419.05
8.1.140.0050.00322.39
8.1.130.0030.00322.06
8.1.120.0000.00717.45
8.1.110.0070.00017.50
8.1.100.0030.00517.41
8.1.90.0030.00417.46
8.1.80.0000.00717.48
8.1.70.0040.00417.45
8.1.60.0000.00717.63
8.1.50.0000.00817.48
8.1.40.0040.00417.50
8.1.30.0080.00017.71
8.1.20.0040.00417.58
8.1.10.0030.00517.57
8.1.00.0040.00417.50
8.0.300.0050.00218.77
8.0.290.0060.00316.75
8.0.280.0000.00818.32
8.0.270.0040.00417.93
8.0.260.0000.00720.05
8.0.250.0030.00516.93
8.0.240.0000.00816.94
8.0.230.0030.00316.81
8.0.220.0050.00216.87
8.0.210.0070.00016.84
8.0.200.0000.00716.90
8.0.190.0030.00616.96
8.0.180.0040.00416.78
8.0.170.0030.00616.88
8.0.160.0030.00316.88
8.0.150.0050.00216.78
8.0.140.0040.00416.75
8.0.130.0000.00513.24
8.0.120.0000.00716.88
8.0.110.0040.00416.69
8.0.100.0050.00216.86
8.0.90.0030.00616.73
8.0.80.0100.00516.79
8.0.70.0040.00416.87
8.0.60.0050.00216.85
8.0.50.0040.00416.88
8.0.30.0060.00917.06
8.0.20.0150.00916.86
8.0.10.0000.00717.06
8.0.00.0120.00916.96
7.4.330.0000.00516.71
7.4.320.0030.00316.53
7.4.300.0030.00316.50
7.4.290.0000.00816.52
7.4.280.0050.00516.51
7.4.270.0030.00316.51
7.4.260.0000.00613.29
7.4.250.0000.00716.43
7.4.240.0010.00616.56
7.4.230.0040.00416.38
7.4.220.0050.00316.63
7.4.210.0100.00716.55
7.4.200.0030.00316.69
7.4.130.0140.00316.46
7.4.120.0090.01216.48
7.4.110.0110.00716.59
7.4.100.0080.01116.51
7.4.90.0140.00616.48
7.4.80.0090.01719.39
7.4.70.0090.00916.46
7.4.60.0050.01016.52
7.4.50.0040.01116.60
7.4.40.0130.00416.35
7.4.10.0060.01316.42
7.4.00.0090.00816.53
7.3.330.0030.00316.26
7.3.320.0030.00313.20
7.3.310.0000.00816.23
7.3.300.0070.00016.27
7.3.290.0100.00616.25
7.3.260.0160.00316.23
7.3.240.0090.00716.35
7.3.230.0090.00916.41
7.3.210.0060.01216.29
7.3.200.0100.00716.23
7.3.190.0080.00816.26
7.3.180.0030.01316.32
7.3.170.0120.00316.38
7.3.160.0030.01216.49
7.3.130.0090.00616.24
7.3.120.0070.00916.20
7.3.110.0110.00816.32
7.3.100.0110.00816.19
7.3.90.0120.00316.17
7.3.80.0080.00916.17
7.3.70.0070.00916.30
7.3.60.0100.00716.22
7.3.50.0080.00816.24
7.3.40.0090.00616.31
7.3.30.0080.00816.25
7.3.20.0040.01316.21
7.3.10.0100.00916.16
7.3.00.0090.00816.33
7.2.330.0070.01116.38
7.2.320.0080.00816.42
7.2.310.0110.01116.71
7.2.300.0130.00316.73
7.2.290.0110.00616.72
7.2.260.0090.00916.42
7.2.250.0150.00516.49
7.2.240.0100.01016.43
7.2.230.0120.00716.36
7.2.220.0100.00716.48
7.2.210.0130.00816.44
7.2.200.0110.00416.44
7.2.190.0030.01316.48
7.2.180.0030.01416.46
7.2.170.0070.00916.38
7.2.160.0090.00916.29
7.2.150.0090.00716.47
7.2.140.0150.00716.52
7.2.130.0100.01316.52
7.2.120.0200.00916.45
7.2.110.0340.01116.50
7.2.100.0070.01116.45
7.2.90.0150.00316.38
7.2.80.0140.00516.64
7.2.70.0100.00616.45
7.2.60.0070.01216.44
7.2.50.0090.01116.64
7.2.40.0100.00716.38
7.2.30.0100.01116.53
7.2.20.0160.00416.50
7.2.10.0040.01216.32
7.2.00.0060.01116.45

preferences:
57.06 ms | 400 KiB | 5 Q