3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyString { function __toString() { return "2"; } } $a = '5'; $b = new MyString(); var_dump($a + $b);

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.4.120.0040.00524.11
8.4.110.0060.00220.69
8.4.100.0100.01118.04
8.4.90.0120.00720.53
8.4.80.0080.01119.07
8.4.70.0020.00718.82
8.4.60.0090.00720.31
8.4.50.0130.00718.81
8.4.40.0170.00717.62
8.4.30.0100.01024.08
8.4.20.0090.00620.67
8.4.10.0190.00218.71
8.3.250.0080.01018.73
8.3.240.0110.00817.01
8.3.230.0110.00816.77
8.3.220.0110.01018.87
8.3.210.0080.01016.61
8.3.200.0040.00416.66
8.3.190.0120.00617.27
8.3.180.0120.00818.72
8.3.170.0120.00617.00
8.3.160.0140.00418.55
8.3.150.0150.00417.05
8.3.140.0150.01316.54
8.3.130.0170.00816.82
8.3.120.0200.00717.58
8.3.110.0360.00616.48
8.3.100.0340.01316.49
8.3.90.0380.00916.61
8.3.80.0440.00516.72
8.3.70.0300.00916.64
8.3.60.0250.00616.61
8.3.50.0210.00116.59
8.3.40.0170.00517.50
8.3.30.0250.00617.29
8.3.20.0270.00417.52
8.3.10.0230.00417.57
8.3.00.0140.00818.41
8.2.290.0110.00716.58
8.2.280.0120.00520.32
8.2.270.0110.00717.27
8.2.260.0190.00516.73
8.2.250.0150.00817.55
8.2.240.0210.00317.77
8.2.230.0280.00916.64
8.2.220.0220.01416.66
8.2.210.0300.00916.39
8.2.200.0260.01316.49
8.2.190.0270.01116.41
8.2.180.0290.00816.71
8.2.170.0280.00717.79
8.2.160.0270.00917.52
8.2.150.0260.01217.46
8.2.140.0310.00217.39
8.2.130.0240.00717.47
8.2.120.0330.00317.55
8.2.110.0320.00817.58
8.2.100.0240.01017.52
8.2.90.0300.00617.60
8.2.80.0330.00517.45
8.2.70.0270.00917.21
8.2.60.0240.01317.38
8.2.50.0320.00517.58
8.2.40.0270.01017.54
8.2.30.0310.00517.43
8.2.20.0230.01317.44
8.2.10.0260.00717.70
8.2.00.0240.01017.46
8.1.330.0100.00916.37
8.1.320.0140.00917.90
8.1.310.0180.00517.23
8.1.300.0210.00818.13
8.1.290.0320.00816.18
8.1.280.0260.01416.28
8.1.270.0330.01017.17
8.1.260.0270.00617.30
8.1.250.0300.00817.18
8.1.240.0280.00017.27
8.1.230.0200.00817.23
8.1.220.0270.01117.18
8.1.210.0280.00817.24
8.1.200.0220.00317.18
8.1.190.0200.00917.11
8.1.180.0270.00017.21
8.1.170.0300.00417.05
8.1.160.0180.00917.11
8.1.150.0240.01017.10
8.1.140.0340.00317.18
8.1.130.0350.00017.04
8.1.120.0300.00617.25
8.1.110.0300.00717.17
8.1.100.0290.00817.14
8.1.90.0240.01317.29
8.1.80.0240.00817.23
8.1.70.0260.00517.33
8.1.60.0350.00717.32
8.1.50.0370.00317.12
8.1.40.0330.01017.22
8.1.30.0290.00717.45
8.1.20.0290.00517.35
8.1.10.0240.00817.39
8.1.00.0360.00317.31

preferences:
28.61 ms | 403 KiB | 5 Q