3v4l.org

run code in 300+ PHP versions simultaneously
<?php class B { public function __toString() { return "Instances of B() can be treated as a strings!\n"; } } $b = new B(); print($b); //Instances of B() can be treated as a strings! print(is_string($b) ? 'true' : 'false'); //false

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.0070.00220.71
8.4.110.0030.00622.52
8.4.100.0120.00917.96
8.4.90.0150.00618.48
8.4.80.0080.01217.81
8.4.70.0070.00417.86
8.4.60.0110.01018.61
8.4.50.0060.00318.69
8.4.40.0030.00619.61
8.4.30.0110.00017.52
8.4.20.0200.00020.60
8.4.10.0060.00319.47
8.3.250.0090.01019.08
8.3.240.0060.00216.67
8.3.230.0130.00616.45
8.3.220.0080.00916.97
8.3.210.0050.00918.41
8.3.200.0100.00916.82
8.3.190.0110.00616.66
8.3.180.0050.00318.42
8.3.170.0100.00717.06
8.3.160.0090.00918.18
8.3.150.0140.00716.80
8.3.140.0110.00816.53
8.3.130.0200.00516.52
8.3.120.0180.00817.72
8.3.110.0190.00616.55
8.3.100.0200.00620.29
8.3.90.0180.01221.47
8.3.80.0230.00317.17
8.3.70.0220.01016.49
8.3.60.0200.00317.23
8.3.50.0160.00817.58
8.3.40.0140.01117.99
8.3.30.0160.00918.00
8.3.20.0130.00717.89
8.3.10.0180.00120.39
8.3.00.0150.00819.49
8.2.290.0120.00820.50
8.2.280.0060.00218.18
8.2.270.0030.00617.01
8.2.260.0140.00418.68
8.2.250.0210.00716.52
8.2.240.0180.00716.79
8.2.230.0210.00318.63
8.2.220.0160.00527.03
8.2.210.0120.00821.54
8.2.200.0230.00016.40
8.2.190.0240.00417.27
8.2.180.0180.00616.32
8.2.170.0190.01120.24
8.2.160.0270.00018.47
8.2.150.0190.00620.76
8.2.140.0220.00321.08
8.2.130.0140.00618.62
8.2.120.0150.00621.80
8.2.110.0170.00519.24
8.2.100.0220.00417.56
8.2.90.0180.00617.87
8.2.80.0160.00817.78
8.2.70.0200.00417.65
8.2.60.0170.00717.78
8.2.50.0200.00617.58
8.2.40.0200.00218.37
8.2.30.0190.00418.96
8.2.20.0180.00517.69
8.2.10.0150.00917.61
8.2.00.0210.00418.27
8.1.330.0110.00923.56
8.1.320.0090.01016.28
8.1.310.0060.00918.47
8.1.300.0220.00616.11
8.1.290.0170.00723.51
8.1.280.0240.00321.05
8.1.270.0170.00818.98
8.1.260.0130.00821.95
8.1.250.0180.00622.70
8.1.240.0190.00418.84
8.1.230.0160.00719.03
8.1.220.0140.00817.57
8.1.210.0190.00718.05
8.1.200.0180.00517.32
8.1.190.0150.00817.15
8.1.180.0150.00817.65
8.1.170.0130.00517.96
8.1.160.0190.00318.06
8.1.150.0190.00418.10
8.1.140.0150.00818.84
8.1.130.0160.00618.70
8.1.120.0070.01117.35
8.1.110.0150.00617.29
8.1.100.0200.00217.18
8.1.90.0100.00817.37
8.1.80.0140.00517.20
8.1.70.0120.00817.24
8.1.60.0150.00717.32
8.1.50.0200.00417.38
8.1.40.0210.00217.48
8.1.30.0140.00617.57
8.1.20.0190.00417.58
8.1.10.0290.00317.30
8.1.00.0140.01017.24
8.0.300.0170.00418.32
8.0.290.0130.01016.58
8.0.280.0180.00317.43
8.0.270.0200.00116.91
8.0.260.0130.00818.37
8.0.250.0160.00716.66
8.0.240.0150.00616.74
8.0.230.0200.00116.71
8.0.220.0210.00116.73
8.0.210.0070.00716.68
8.0.200.0150.00516.70
8.0.190.0110.01016.85
8.0.180.0190.00616.63
8.0.170.0170.00616.57
8.0.160.0160.00516.64
8.0.150.0160.00516.72
8.0.140.0130.00716.63
8.0.130.0180.00314.88
8.0.120.0150.00416.71
8.0.110.0190.00316.62
8.0.100.0190.00216.63
8.0.90.0110.00816.71
8.0.80.0110.01216.70
8.0.70.0130.00916.74
8.0.60.0200.00216.68
8.0.50.0150.00416.56
8.0.30.0140.00716.93
8.0.20.0170.00717.23
8.0.10.0170.01116.67
8.0.00.0150.01016.80
7.4.330.0090.01015.97
7.4.320.0130.00416.34
7.4.300.0090.00216.43
7.4.290.0100.00216.40
7.4.280.0100.00316.44
7.4.270.0100.00316.39
7.4.260.0090.00416.35
7.4.250.0120.00716.37
7.4.240.0130.00116.42
7.4.230.0120.00416.26
7.4.220.0140.00116.38
7.4.210.0130.00916.47
7.4.200.0080.01016.26
7.4.190.0150.01216.41
7.4.180.0220.00716.18
7.4.160.0090.00916.35
7.4.150.0210.01116.18
7.4.140.0130.00917.58
7.4.130.0100.01016.43
7.4.120.0120.01016.40
7.4.110.0130.00316.33
7.4.100.0140.01316.44
7.4.90.0140.01016.38
7.4.80.0220.00517.79
7.4.70.0210.00616.34
7.4.60.0220.00616.38
7.4.50.0170.00516.25
7.4.40.0150.00716.25
7.4.30.0230.00916.18
7.4.20.0330.00316.18
7.4.10.0160.01216.24
7.4.00.0210.00315.49
7.3.330.0090.01014.64
7.3.320.0220.00014.67
7.3.310.0110.00916.26
7.3.300.0100.01016.22
7.3.290.0180.00316.23
7.3.280.0150.00516.22
7.3.270.0320.00016.18
7.3.260.0130.01016.36
7.3.250.0380.00016.18
7.3.240.0130.01016.27
7.3.230.0190.00516.23
7.3.220.0310.00416.18
7.3.210.0200.00716.36
7.3.200.0180.00716.18
7.3.190.0200.00916.34
7.3.180.0210.00616.35
7.3.170.0160.00916.30
7.3.160.0180.01116.33
7.3.150.0340.00016.18
7.3.140.0240.01016.18
7.3.130.0300.00416.18
7.3.120.0160.00715.36
7.3.110.0170.00815.63
7.3.100.0180.00715.46
7.3.90.0180.00615.56
7.3.80.0140.01015.45
7.3.70.0160.00615.38
7.3.60.0190.00315.44
7.3.50.0150.00515.51
7.3.40.0190.00615.40
7.3.30.0130.00915.43
7.3.20.0130.00717.09
7.3.10.0150.00617.11
7.3.00.0110.00216.97
7.2.340.0220.00516.18
7.2.330.0120.00516.31
7.2.320.0130.00616.41
7.2.310.0070.01016.34
7.2.300.0140.00316.35
7.2.290.0070.00816.38
7.2.280.0280.00716.18
7.2.270.0300.00616.18
7.2.260.0180.01516.18
7.2.250.0200.01316.22
7.2.240.0190.00515.60
7.2.230.0160.00615.60
7.2.220.0180.00415.57
7.2.210.0170.00815.45
7.2.200.0180.00715.42
7.2.190.0160.00615.62
7.2.180.0160.00515.47
7.2.170.0140.01115.74
7.2.160.0120.00915.54
7.2.150.0090.01417.51
7.2.140.0140.01117.57
7.2.130.0120.00717.27
7.2.120.0140.00817.28
7.2.110.0150.00717.15
7.2.100.0130.00817.26
7.2.90.0980.01116.60
7.2.80.0790.00616.58
7.2.70.0790.00716.68
7.2.60.0840.00516.73
7.2.50.1030.01016.71
7.2.40.0980.00816.45
7.2.30.1000.00916.59
7.2.20.0840.01016.68
7.2.10.0130.00816.69
7.2.00.0160.00716.54
7.1.330.0110.01016.27
7.1.320.0120.01116.52
7.1.310.0130.01016.43
7.1.300.0150.00816.39
7.1.290.0150.00516.17
7.1.280.0140.00916.43
7.1.270.0210.00216.15
7.1.260.0190.00416.26
7.1.250.0140.00615.98
7.1.240.0300.00617.00
7.1.230.0230.00717.10
7.1.220.0180.01117.08
7.1.210.2210.00715.09
7.1.200.1560.01015.43
7.1.190.1480.00915.30
7.1.180.2060.01115.25
7.1.170.1500.00815.43
7.1.160.1540.00415.24
7.1.150.1670.00215.27
7.1.140.2140.00715.23
7.1.130.0240.00815.35
7.1.120.0840.00115.36
7.1.110.1830.00715.35
7.1.100.1790.00815.22
7.1.90.1860.01115.02
7.1.80.2440.00715.18
7.1.70.2070.00715.29
7.1.60.2170.00924.25
7.1.50.2660.01124.41
7.1.40.2550.00824.19
7.1.30.1810.00324.15
7.1.20.2240.01124.29
7.1.10.2630.00315.19
7.1.00.1730.00215.40
7.0.330.0110.00416.56
7.0.320.0120.00616.42
7.0.310.0120.00316.79
7.0.300.0110.00416.49
7.0.290.0110.00316.75
7.0.280.0120.01216.44
7.0.270.0280.00316.84
7.0.260.0330.00016.87
7.0.250.0260.00316.85
7.0.240.0190.00816.89
7.0.230.0240.00816.80
7.0.220.0250.00616.63
7.0.210.0350.00016.82
7.0.200.0280.00316.87
7.0.190.0200.00816.83
7.0.180.0250.01116.74
7.0.170.0420.00316.36
7.0.160.0270.00716.58
7.0.150.0240.00416.69
7.0.140.0260.00616.80
7.0.130.0190.00816.76
7.0.120.0220.00316.89
7.0.110.0180.00716.79
7.0.100.0180.00416.91
7.0.90.0120.00316.66
7.0.80.0120.00216.76
7.0.70.0180.00516.63
7.0.60.0120.00616.82
7.0.50.0290.00416.66
7.0.40.0210.01116.70
7.0.30.0280.00316.62
7.0.20.0280.00316.58
7.0.10.0240.00716.86
7.0.00.0230.00816.80
5.6.400.0210.00816.18
5.6.390.0180.00916.18
5.6.380.0190.00516.18
5.6.370.0240.00516.18
5.6.360.0300.00316.18
5.6.350.0260.00616.18
5.6.340.0210.00816.18
5.6.330.0270.00316.18
5.6.320.0300.00016.18
5.6.310.0200.01016.18
5.6.300.0260.00416.18
5.6.290.0230.00616.18
5.6.280.0240.00616.18
5.6.270.0170.01316.18
5.6.260.0210.01016.18
5.6.250.0270.00316.18
5.6.240.0210.00916.18
5.6.230.0230.00816.18
5.6.220.0260.00416.18
5.6.210.0210.00916.18
5.6.200.0220.00716.18
5.6.190.0230.00616.18
5.6.180.0140.00016.18
5.6.170.0050.00816.18
5.6.160.0090.01416.18
5.6.150.0270.00016.18
5.6.140.0140.00316.18
5.6.130.0130.00416.18
5.6.120.0230.00416.18
5.6.110.0230.00416.18
5.6.100.0150.00316.18
5.6.90.0080.00516.18
5.6.80.0180.00916.18
5.6.70.0300.00016.18
5.6.60.0290.00016.18
5.6.50.0220.00716.18
5.6.40.0230.00616.18
5.6.30.0280.00016.18
5.6.20.0220.00716.18
5.6.10.0300.00016.18
5.6.00.0220.00616.18

preferences:
35.34 ms | 403 KiB | 5 Q