3v4l.org

run code in 300+ PHP versions simultaneously
<?php $e = new \Exception("Hello\0World"); var_dump(strlen($e->getMessage())); var_dump($e->getMessage() === "Hello\0World"); var_dump($e->getMessage());

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.00.0140.00719.73
8.4.150.0020.00014.05
8.4.140.0110.00917.59
8.4.130.0120.00817.54
8.4.120.0100.00920.48
8.4.110.0050.00322.29
8.4.100.0100.01017.82
8.4.90.0160.00417.86
8.4.80.0020.00617.64
8.4.70.0110.00817.59
8.4.60.0110.00417.88
8.4.50.0120.00817.53
8.4.40.0150.00623.94
8.4.30.0030.00620.54
8.4.20.0130.00620.79
8.4.10.0160.00324.04
8.3.280.0110.00818.29
8.3.270.0140.00616.55
8.3.260.0110.00516.30
8.3.250.0080.00918.90
8.3.240.0120.00716.59
8.3.230.0110.00816.38
8.3.220.0150.00717.23
8.3.210.0100.01016.47
8.3.200.0130.00616.98
8.3.190.0130.00916.43
8.3.180.0120.00816.48
8.3.170.0140.00317.25
8.3.160.0030.01416.78
8.3.150.0110.00716.40
8.3.140.0060.01216.92
8.3.130.0040.00418.23
8.3.120.0030.01718.87
8.3.110.0160.00320.94
8.3.100.0050.00324.06
8.3.90.0060.00926.77
8.3.80.0090.00018.43
8.3.70.0130.00316.58
8.3.60.0170.00316.50
8.3.50.0230.00016.64
8.3.40.0100.01021.84
8.3.30.0070.00718.52
8.3.20.0080.00024.18
8.3.10.0080.00024.66
8.3.00.0050.00226.16
8.2.290.0130.00520.46
8.2.280.0100.00816.63
8.2.270.0070.01117.09
8.2.260.0140.00716.79
8.2.250.0040.00419.16
8.2.240.0030.00616.62
8.2.230.0080.00022.58
8.2.220.0060.00337.54
8.2.210.0060.00326.77
8.2.200.0090.00316.63
8.2.190.0040.01118.29
8.2.180.0070.00725.92
8.2.170.0070.00718.82
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0030.00626.16
8.2.110.0060.00320.94
8.2.100.0040.00717.59
8.2.90.0030.00617.91
8.2.80.0080.00018.22
8.2.70.0040.00417.50
8.2.60.0070.00317.50
8.2.50.0030.00617.50
8.2.40.0030.00619.35
8.2.30.0050.01117.59
8.2.20.0040.00419.26
8.2.10.0160.00017.59
8.2.00.0090.00617.59
8.1.330.0130.00516.54
8.1.320.0150.00717.93
8.1.310.0110.00718.47
8.1.300.0060.00317.99
8.1.290.0030.01030.84
8.1.280.0070.00725.92
8.1.270.0070.00724.66
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00320.73
8.1.230.0040.00722.08
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.10
8.1.190.0110.00017.25
8.1.180.0000.00818.10
8.1.170.0000.00917.62
8.1.160.0100.00517.59
8.1.150.0140.00317.59
8.1.140.0140.00317.59
8.1.130.0130.00317.59
8.1.120.0080.00817.59
8.1.110.0080.00817.59
8.1.100.0180.00017.59
8.1.90.0250.00017.59
8.1.80.0210.00017.59
8.1.70.0110.00517.59
8.1.60.0180.00017.59
8.1.50.0090.00917.59
8.1.40.0170.00017.59
8.1.30.0140.00317.59
8.1.20.0130.00417.59
8.1.10.0090.00917.59
8.1.00.0090.00917.59
8.0.300.0040.00419.81
8.0.290.0000.00716.58
8.0.280.0160.00017.59
8.0.270.0130.00317.59
8.0.260.0100.00717.59
8.0.250.0140.00317.59
8.0.240.0050.01017.59
8.0.230.0060.01117.59
8.0.220.0110.00617.59
8.0.210.0120.00417.59
8.0.200.0120.00417.59
8.0.190.0160.00017.59
8.0.180.0130.00317.59
8.0.170.0080.00417.59
8.0.160.0130.00317.59
8.0.150.0120.00417.59
8.0.140.0120.00417.59
8.0.130.0120.00517.59
8.0.120.0080.00817.59
8.0.110.0150.00017.59
8.0.100.0140.00317.59
8.0.90.0160.00017.59
8.0.80.0060.01217.59
8.0.70.0200.00417.59
8.0.60.0100.00817.59
8.0.50.0120.00417.59
8.0.30.0120.00417.59
8.0.20.0110.00517.59
8.0.10.0160.00017.59

preferences:
31.74 ms | 403 KiB | 5 Q