3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __toString() { return 1; } } $f = new Foo(); try { print (string) $f; } catch (\Throwable $e) { var_dump($e); }

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.0110.00418.43
8.3.50.0100.00918.11
8.3.40.0070.00719.01
8.3.30.0040.01118.70
8.3.20.0070.00020.78
8.3.10.0000.00723.65
8.3.00.0030.00621.73
8.2.180.0110.00416.50
8.2.170.0140.00422.96
8.2.160.0070.00720.34
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0090.00019.76
8.2.120.0040.00426.35
8.2.110.0030.00719.82
8.2.100.0030.01019.64
8.2.90.0000.00817.75
8.2.80.0080.00018.81
8.2.70.0030.00617.63
8.2.60.0050.00218.03
8.2.50.0090.00018.10
8.2.40.0040.00419.46
8.2.30.0040.00420.38
8.2.20.0070.00018.12
8.2.10.0000.00719.48
8.2.00.0070.00017.92
8.1.280.0090.00925.92
8.1.270.0050.00223.98
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00323.79
8.1.230.0080.00422.80
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0000.00817.48
8.1.190.0000.00817.35
8.1.180.0020.00618.10
8.1.170.0050.00318.42
8.1.160.0040.00418.75
8.1.150.0030.00318.85
8.1.140.0050.00219.06
8.1.130.0040.00417.45
8.1.120.0030.00317.34
8.1.110.0000.01017.46
8.1.100.0000.00717.49
8.1.90.0000.00817.52
8.1.80.0040.00417.50
8.1.70.0040.00417.34
8.1.60.0040.00417.57
8.1.50.0040.00417.49
8.1.40.0030.00617.54
8.1.30.0030.00517.55
8.1.20.0000.00817.54
8.1.10.0040.00417.56
8.1.00.0030.00517.37
8.0.300.0000.00918.77
8.0.290.0090.00016.63
8.0.280.0000.00718.38
8.0.270.0070.00017.23
8.0.260.0030.00316.86
8.0.250.0040.00416.93
8.0.240.0000.00717.00
8.0.230.0000.00717.05
8.0.220.0040.00316.84
8.0.210.0030.00416.83
8.0.200.0080.00016.90
8.0.190.0060.00316.95
8.0.180.0000.00816.87
8.0.170.0030.00617.00
8.0.160.0030.00316.88
8.0.150.0040.00416.96
8.0.140.0030.00516.96
8.0.130.0000.00613.41
8.0.120.0040.00416.82
8.0.110.0050.00316.80
8.0.100.0050.00316.91
8.0.90.0040.00416.80
8.0.80.0160.00316.99
8.0.70.0000.00716.82
8.0.60.0040.00416.96
8.0.50.0030.00516.97
8.0.30.0070.01017.03
8.0.20.0060.01316.87
8.0.10.0070.00016.94
8.0.00.0120.01116.76
7.4.330.0000.00516.71
7.4.320.0000.00616.50
7.4.300.0000.00616.51
7.4.290.0080.00016.60
7.4.280.0000.00816.64
7.4.270.0040.00416.50
7.4.260.0040.00416.44
7.4.250.0070.00016.48
7.4.240.0030.00316.52
7.4.230.0030.00316.69
7.4.220.0040.00416.68
7.4.210.0060.00916.62
7.4.200.0050.00316.41
7.4.160.0060.01216.38
7.4.140.0090.01017.86
7.4.130.0100.01016.58
7.4.120.0190.00416.47
7.4.110.0070.01116.42
7.4.100.0140.00316.57
7.4.90.0090.00916.44
7.4.80.0090.00919.39
7.4.70.0150.00616.57
7.4.60.0030.01316.60
7.4.50.0100.00316.64
7.4.40.0070.01716.43
7.4.00.0090.00515.11
7.3.330.0050.00013.30
7.3.320.0050.00013.07
7.3.310.0000.00716.20
7.3.300.0000.00716.27
7.3.290.0000.00616.26
7.3.280.0100.00716.30
7.3.260.0140.00916.42
7.3.240.0120.00816.37
7.3.230.0090.00616.30
7.3.210.0140.00316.35
7.3.200.0090.00916.52
7.3.190.0130.00416.50
7.3.180.0100.00616.35
7.3.170.0060.00916.32
7.3.160.0030.01216.44
7.3.120.0030.01214.47
7.3.110.0040.01214.54
7.3.100.0060.00914.46
7.3.90.0040.01414.38
7.3.80.0070.00414.79
7.3.70.0000.01014.45
7.3.60.0040.00814.63
7.3.50.0060.00614.46
7.3.40.0060.00914.60
7.3.30.0090.00614.54
7.3.20.0050.01415.50
7.3.10.0060.00715.68
7.3.00.0050.01115.76
7.2.330.0100.00716.68
7.2.320.0090.00916.62
7.2.310.0040.01316.46
7.2.300.0000.02016.35
7.2.290.0070.01016.41
7.2.250.0060.01314.81
7.2.240.0100.01014.74
7.2.230.0060.00615.07
7.2.220.0070.00714.78
7.2.210.0030.01314.79
7.2.200.0030.00714.83
7.2.190.0060.00314.78
7.2.180.0090.00915.01
7.2.170.0060.01114.93
7.2.160.0060.01014.97
7.2.150.0120.01214.94
7.2.140.0190.00314.98
7.2.130.0120.00014.70
7.2.120.0090.00314.48
7.2.110.0060.00614.85
7.2.100.0090.00315.03
7.2.90.0170.00715.08
7.2.80.0150.00914.62
7.2.70.0110.00714.98
7.2.60.0120.00614.91
7.2.50.0180.00715.05
7.2.40.0160.01014.78
7.2.30.0100.01415.07
7.2.20.0060.01015.08
7.2.10.0060.00614.98
7.2.00.0090.00414.77
7.1.330.0040.01115.50
7.1.320.0030.00615.50
7.1.310.0030.01015.54
7.1.300.0040.01115.27
7.1.290.0070.00415.13
7.1.280.0130.00514.65
7.1.270.0070.00814.62
7.1.260.0070.01014.44
7.1.250.0070.00713.83

preferences:
46.45 ms | 401 KiB | 5 Q