3v4l.org

run code in 300+ PHP versions simultaneously
<?php $domd=new DOMDocument(); $str = "DOMDocument"; var_dump($domd instanceof $str); // ^ is legal. // V is illegal // var_dump($domd instanceof "DOMDocument"); $code = ' var_dump($domd instanceof "DOMDocument"); '; eval($code); // the eval hack is for illustration, make it an error at run-time, rather than compile-time.

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.140.0110.01118.13
8.4.130.0090.00818.29
8.4.120.0120.00822.48
8.4.110.0130.00521.00
8.4.100.0150.00618.79
8.4.90.0130.00819.29
8.4.80.0110.01019.08
8.4.70.0060.00217.98
8.4.60.0120.01019.17
8.4.50.0110.00919.69
8.4.40.0120.00618.15
8.4.30.0100.01020.66
8.4.20.0080.00020.03
8.4.10.0060.00319.68
8.3.270.0100.01016.51
8.3.260.0120.00416.82
8.3.250.0130.00618.82
8.3.240.0050.00318.50
8.3.230.0060.00516.53
8.3.220.0080.01118.88
8.3.210.0120.00716.93
8.3.200.0080.00816.95
8.3.190.0030.00516.76
8.3.180.0120.00718.84
8.3.170.0160.00317.22
8.3.160.0120.00318.67
8.3.150.0090.00917.32
8.3.140.0090.00017.09
8.3.130.0040.00418.46
8.3.120.0060.00318.76
8.3.110.0030.00620.94
8.3.100.0080.00016.89
8.3.90.0110.00726.77
8.3.80.0160.00927.73
8.3.70.0210.00819.27
8.3.60.0250.00420.29
8.3.50.0110.00421.14
8.3.40.0170.00821.59
8.3.30.0190.00821.10
8.3.20.0210.00521.58
8.3.10.0190.00521.72
8.3.00.0200.00621.90
8.2.290.0100.00820.51
8.2.280.0120.00718.66
8.2.270.0040.01516.61
8.2.260.0040.00418.40
8.2.250.0050.00317.00
8.2.240.0090.00019.21
8.2.230.0080.00022.58
8.2.220.0090.00024.06
8.2.210.0050.00326.77
8.2.200.0140.00824.66
8.2.190.0150.00719.00
8.2.180.0190.00520.25
8.2.170.0190.00621.60
8.2.160.0170.00821.53
8.2.150.0180.00521.77
8.2.140.0200.00621.68
8.2.130.0210.00521.86
8.2.120.0180.00821.18
8.2.110.0190.00521.27
8.2.100.0220.00419.83
8.2.90.0190.00720.31
8.2.80.0180.00620.37
8.2.70.0190.00720.39
8.2.60.0180.00820.29
8.2.50.0220.00520.30
8.2.40.0200.00620.39
8.2.30.0220.00420.30
8.2.20.0210.00720.31
8.2.10.0200.00620.32
8.2.00.0180.00720.33
8.1.330.0040.00422.13
8.1.320.0130.00616.16
8.1.310.0180.00017.15
8.1.300.0030.00616.30
8.1.290.0180.00730.84
8.1.280.0190.00921.28
8.1.270.0230.00521.48
8.1.260.0210.00521.74
8.1.250.0190.00721.97
8.1.240.0130.00820.47
8.1.230.0170.00720.15
8.1.220.0190.00620.16
8.1.210.0180.00520.46
8.1.200.0180.00620.20
8.1.190.0160.00820.11
8.1.180.0190.00720.11
8.1.170.0220.00520.15
8.1.160.0180.00620.19
8.1.150.0200.00420.10
8.1.140.0190.00620.10
8.1.130.0180.00620.06
8.1.120.0190.00520.38
8.1.110.0190.00520.20
8.1.100.0190.00620.14
8.1.90.0180.00420.17
8.1.80.0180.00520.18
8.1.70.0160.00820.23
8.1.60.0180.00720.22
8.1.50.0200.00620.16
8.1.40.0210.00620.24
8.1.30.0180.00720.25
8.1.20.0210.00620.26
8.1.10.0190.00620.19
8.1.00.0220.00420.33
8.0.300.0190.00619.95
8.0.290.0230.00419.93
8.0.280.0200.00419.82
8.0.270.0170.00719.80
8.0.260.0190.00519.81
8.0.250.0190.00619.86
8.0.240.0200.00619.82
8.0.230.0190.00719.78
8.0.220.0200.00519.76
8.0.210.0220.00419.80
8.0.200.0210.00519.62
8.0.190.0200.00619.64
8.0.180.0220.00419.61
8.0.170.0180.00619.62
8.0.160.0210.00519.61
8.0.150.0180.00519.59
8.0.140.0190.00719.61
8.0.130.0190.00419.61
8.0.120.0190.00419.61
8.0.110.0180.00419.60
8.0.100.0170.00619.60
8.0.90.0220.00319.60
8.0.80.0200.00519.56
8.0.70.0210.00419.62
8.0.60.0200.00619.58
8.0.50.0220.00419.61
8.0.30.0210.00419.61
8.0.20.0200.00519.68
8.0.10.0170.00719.67

preferences:
29.3 ms | 403 KiB | 5 Q