3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyComment extends \DOMComment { } $dom = new DOMDocument(); $dom->registerNodeClass('DOMComment', 'MyComment'); var_dump($dom->createComment('Foo')->ownerDocument);

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.70.0120.00318.18
8.3.60.0070.01418.38
8.3.50.0160.00621.94
8.3.40.0040.01118.48
8.3.30.0120.00618.95
8.3.20.0080.00020.34
8.3.10.0040.00423.84
8.3.00.0050.00319.13
8.2.180.0160.00616.75
8.2.170.0070.00722.96
8.2.160.0060.01220.35
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00422.08
8.2.110.0100.00022.11
8.2.100.0000.01217.63
8.2.90.0000.00819.21
8.2.80.0060.00317.97
8.2.70.0110.00417.25
8.2.60.0050.00317.80
8.2.50.0030.00619.35
8.2.40.0050.00318.16
8.2.30.0040.00417.96
8.2.20.0050.00217.75
8.2.10.0000.00817.98
8.2.00.0040.00417.82
8.1.280.0040.01825.92
8.1.270.0000.00923.96
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00624.02
8.1.230.0040.00819.29
8.1.220.0050.00317.74
8.1.210.0030.00518.77
8.1.200.0100.00017.23
8.1.190.0000.00817.13
8.1.180.0000.00818.10
8.1.170.0060.00618.49
8.1.160.0030.00621.97
8.1.150.0030.00518.97
8.1.140.0040.00417.45
8.1.130.0070.00017.95
8.1.120.0040.00417.38
8.1.110.0040.00417.44
8.1.100.0040.00417.40
8.1.90.0030.00617.43
8.1.80.0000.00717.32
8.1.70.0080.00017.34
8.1.60.0040.00417.57
8.1.50.0040.00417.48
8.1.40.0030.00617.37
8.1.30.0040.00417.60
8.1.20.0000.00817.50
8.1.10.0030.00617.60
8.1.00.0060.00317.60
8.0.300.0030.00618.77
8.0.290.0050.00516.63
8.0.280.0000.00718.39
8.0.270.0070.00017.11
8.0.260.0030.00318.36
8.0.250.0030.00316.89
8.0.240.0070.00016.89
8.0.230.0040.00416.88
8.0.220.0070.00016.83
8.0.210.0040.00416.84
8.0.200.0060.00016.88
8.0.190.0000.00716.93
8.0.180.0040.00416.80
8.0.170.0070.00016.83
8.0.160.0040.00416.80
8.0.150.0030.00516.76
8.0.140.0040.00416.79
8.0.130.0000.00513.32
8.0.120.0040.00416.88
8.0.110.0050.00316.90
8.0.100.0040.00416.71
8.0.90.0040.00416.65
8.0.80.0060.01016.95
8.0.70.0070.00016.63
8.0.60.0080.00016.96
8.0.50.0050.00216.68
8.0.30.0110.01316.85
8.0.20.0160.00817.40
8.0.10.0050.00316.98
8.0.00.0090.01016.93
7.4.330.0000.00615.02
7.4.320.0070.00016.67
7.4.300.0040.00416.50
7.4.290.0040.00416.52
7.4.280.0040.00416.51
7.4.270.0040.00416.50
7.4.260.0070.00316.53
7.4.250.0060.00316.46
7.4.240.0030.00416.54
7.4.230.0030.00316.49
7.4.220.0110.00716.57
7.4.210.0070.01416.46
7.4.200.0030.00316.64
7.4.160.0110.00716.74
7.4.150.0090.00917.40
7.4.140.0090.01517.86
7.4.130.0090.01116.57
7.4.120.0070.01416.46
7.4.110.0140.01016.25
7.4.100.0150.00416.48
7.4.90.0070.01116.35
7.4.80.0110.01119.39
7.4.70.0130.00316.44
7.4.60.0100.00616.49
7.4.50.0030.00616.28
7.4.40.0070.01116.48
7.4.30.0160.00716.45
7.4.00.0060.01014.72
7.3.330.0030.00313.25
7.3.320.0000.00513.04
7.3.310.0060.00016.14
7.3.300.0000.00616.05
7.3.290.0060.01116.20
7.3.280.0070.01016.24
7.3.270.0150.00917.40
7.3.260.0110.00716.47
7.3.250.0080.01416.45
7.3.240.0100.00716.23
7.3.230.0090.00916.39
7.3.210.0070.01416.40
7.3.200.0130.01319.39
7.3.190.0130.01016.44
7.3.180.0160.00316.46
7.3.170.0140.00816.65
7.3.160.0130.00416.61
7.3.10.0160.00916.36
7.3.00.0150.00615.95
7.2.330.0070.01216.30
7.2.320.0110.00816.38
7.2.310.0150.00316.70
7.2.300.0130.00316.23
7.2.290.0060.01516.66
7.2.130.0100.01416.55
7.2.120.0100.01016.45
7.2.110.0120.00416.40
7.2.100.0050.00716.39
7.2.90.0150.00616.66
7.2.80.0090.00516.59
7.2.70.0020.01216.60
7.2.60.0050.01016.62
7.2.50.0100.00916.54
7.2.40.0070.00916.60
7.2.30.0100.01116.58
7.2.20.0090.00916.39
7.2.10.0120.00916.54
7.2.00.0060.00917.53
7.1.250.0060.00915.27
7.1.240.0030.00915.34
7.1.230.0070.00715.74
7.1.220.0130.00315.49
7.1.210.0060.00615.73
7.1.200.0030.01215.77
7.1.190.0110.00415.60
7.1.180.0070.00615.70
7.1.170.0000.01415.73
7.1.160.0040.01115.57
7.1.150.0030.01215.65
7.1.140.0100.00315.68
7.1.130.0060.01015.85
7.1.120.0130.00315.57
7.1.110.0090.00615.68
7.1.100.0050.01016.93
7.1.90.0040.01115.49
7.1.80.0040.01115.70
7.1.70.0060.00616.20
7.1.60.0050.01317.35
7.1.50.0080.01016.19
7.1.40.0060.00915.34
7.1.30.0040.00415.69
7.1.20.0070.00715.64
7.1.10.0040.01115.75
7.1.00.0030.04218.90
7.0.320.0060.00615.00
7.0.310.0120.00315.34
7.0.300.0000.01214.99
7.0.290.0040.01115.33
7.0.280.0030.01015.26
7.0.270.0000.01415.09
7.0.260.0070.00415.26
7.0.250.0060.00615.29
7.0.240.0000.01115.16
7.0.230.0060.00615.29
7.0.220.0130.00015.18
7.0.210.0060.00615.29
7.0.200.0040.00615.95
7.0.190.0120.00415.40
7.0.180.0050.00515.17
7.0.170.0030.01015.02
7.0.160.0040.00815.13
7.0.150.0070.00415.08
7.0.140.0040.03618.62
7.0.130.0080.00315.15
7.0.120.0080.00415.44
7.0.110.0040.01115.50
7.0.100.0030.00615.40
7.0.90.0060.00615.33
7.0.80.0070.00715.38
7.0.70.0070.00715.05
7.0.60.0050.02117.68
7.0.50.0100.03616.65
7.0.40.0030.03416.89
7.0.30.0150.04416.88
7.0.20.0170.02316.73
7.0.10.0050.02516.86
7.0.00.0070.03516.72
5.6.380.0060.00314.59
5.6.370.0040.00414.50
5.6.360.0050.00514.44
5.6.350.0060.00314.19
5.6.340.0040.01114.14
5.6.330.0070.00614.52
5.6.320.0060.00314.02
5.6.310.0060.00614.33
5.6.300.0100.00014.40
5.6.290.0030.01314.29
5.6.280.0070.04017.62
5.6.270.0030.00614.48
5.6.260.0070.00714.47
5.6.250.0040.01114.11
5.6.240.0000.00814.19
5.6.230.0140.00014.34
5.6.220.0070.00314.33
5.6.210.0110.01817.26
5.6.200.0090.03616.38
5.6.190.0070.05017.52
5.6.180.0130.02317.23
5.6.170.0190.02617.53
5.6.160.0070.02217.24
5.6.150.0020.02316.23
5.6.140.0110.02016.20
5.6.130.0050.02816.29
5.6.120.0020.02517.82
5.6.110.0000.02817.48
5.6.100.0050.03217.70
5.6.90.0030.03317.65
5.6.80.0030.04217.32
5.6.70.2290.02017.33
5.6.60.0040.00714.32
5.6.50.0070.00714.29
5.6.40.0030.00714.30
5.6.30.0000.01414.11
5.6.20.0060.00614.16
5.6.10.0070.00714.12
5.6.00.0000.01114.09
5.5.380.0090.00711.17
5.5.370.0050.00811.23
5.5.360.0070.00010.96
5.5.350.0130.02615.90
5.5.340.0100.02314.54
5.5.330.0080.04315.84
5.5.320.0220.03015.73
5.5.310.0180.02815.62
5.5.300.0110.01714.54
5.5.290.0070.04314.58
5.5.280.0040.02416.04
5.5.270.0070.03815.91
5.5.260.0080.04516.13
5.5.250.0120.03215.56
5.5.240.0130.03215.55
5.5.230.0110.00411.16
5.5.220.0140.00011.32
5.5.210.0110.00311.05
5.5.200.0060.00811.05
5.5.190.0090.00011.03
5.5.180.0030.00811.15
5.5.170.0040.00414.29
5.5.160.0090.00310.91
5.5.150.0090.00311.30
5.5.140.0030.00511.11
5.5.130.0000.00611.24
5.5.120.0070.00411.17
5.5.110.0100.00310.95
5.5.100.0030.00311.05
5.5.90.0030.01011.24
5.5.80.0100.00311.02
5.5.70.0030.00711.15
5.5.60.0030.00910.81
5.5.50.0070.00711.11
5.5.40.0030.00310.92
5.5.30.0090.00011.02
5.5.20.0030.00910.95
5.5.10.0030.00411.18
5.5.00.0090.00310.80
5.4.450.0440.03015.17
5.4.440.0340.03315.24
5.4.430.0410.02715.26
5.4.420.0120.02715.24
5.4.410.0330.03415.26
5.4.400.0330.03214.74
5.4.390.0410.03015.13
5.4.380.0490.02214.93
5.4.370.0330.03014.96
5.4.360.0380.02814.96
5.4.350.0470.02614.78
5.4.340.0080.01811.48
5.4.330.0090.00010.77
5.4.320.0040.02311.83
5.4.310.0070.02011.56
5.4.300.0040.02311.69
5.4.290.0100.01911.80
5.4.280.0070.01911.50
5.4.270.0060.01911.52
5.4.260.0060.02611.51
5.4.250.0100.02111.51
5.4.240.0060.02011.66
5.4.230.0050.02111.83
5.4.220.0050.01911.64
5.4.210.0070.01911.84
5.4.200.0100.01911.66
5.4.190.0030.02011.70
5.4.180.0070.01911.52
5.4.170.0080.02011.82
5.4.160.0050.02011.75
5.4.150.0050.02011.68
5.4.140.0080.01911.38
5.4.130.0050.02211.53
5.4.120.0090.02311.44
5.4.110.0070.02511.38
5.4.100.0050.02411.36
5.4.90.0060.02311.52
5.4.80.0070.02211.51
5.4.70.0070.01911.51
5.4.60.0090.01911.53
5.4.50.0030.02311.39
5.4.40.0080.01811.48
5.4.30.0020.02411.49
5.4.20.0090.01711.49
5.4.10.0050.02111.58
5.4.00.0060.01911.29
5.3.290.0090.02211.68
5.3.280.0070.02011.54
5.3.270.0100.01811.52
5.3.260.0100.01911.71
5.3.250.0030.02411.69
5.3.240.0060.02111.65
5.3.230.0090.02011.62
5.3.220.0090.02011.59
5.3.210.0070.02111.51
5.3.200.0060.02211.57
5.3.190.0080.01911.60
5.3.180.0100.01711.65
5.3.170.0050.02311.69
5.3.160.0060.02311.63
5.3.150.0060.02211.64
5.3.140.0060.02611.51
5.3.130.0090.02011.64
5.3.120.0110.02011.62
5.3.110.0060.02411.65
5.3.100.0040.02211.35
5.3.90.0050.02711.22
5.3.80.0080.02211.30
5.3.70.0110.01711.22
5.3.60.0090.01811.36
5.3.50.0080.01811.26
5.3.40.0020.02311.25
5.3.30.0070.02011.18
5.3.20.0090.01811.18
5.3.10.0070.01911.10
5.3.00.0080.02211.03
5.2.170.0050.0179.77
5.2.160.0050.0179.77
5.2.150.0030.0199.77
5.2.140.0070.0179.77
5.2.130.0050.0209.75
5.2.120.0040.0199.75
5.2.110.0070.0199.76
5.2.100.0050.0189.75
5.2.90.0080.0169.75
5.2.80.0090.0149.75
5.2.70.0080.0179.75
5.2.60.0060.0239.72
5.2.50.0030.0209.71
5.2.40.0050.0169.70
5.2.30.0080.0149.69
5.2.20.0060.0179.68
5.2.10.0050.0169.63
5.2.00.0060.0179.57
5.1.60.0040.0159.21
5.1.50.0050.0149.21
5.1.40.0040.0159.20
5.1.30.0020.0169.37
5.1.20.0040.0159.38
5.1.10.0040.0159.25
5.1.00.0050.0159.24
5.0.50.0040.0128.49
5.0.40.0050.0128.41
5.0.30.0050.0188.32
5.0.20.0010.0158.30
5.0.10.0020.0148.29
5.0.00.0050.0198.29
4.4.90.0010.0117.54
4.4.80.0040.0107.53
4.4.70.0050.0077.53
4.4.60.0050.0077.53
4.4.50.0040.0107.54
4.4.40.0020.0147.51
4.4.30.0020.0117.53
4.4.20.0040.0097.58
4.4.10.0010.0117.58
4.4.00.0040.0137.54
4.3.110.0040.0107.49
4.3.100.0030.0097.49
4.3.90.0050.0077.47
4.3.80.0050.0137.45
4.3.70.0010.0127.47
4.3.60.0020.0117.47
4.3.50.0050.0097.47
4.3.40.0020.0147.42
4.3.30.0020.0116.80
4.3.20.0030.0106.79
4.3.10.0010.0126.77
4.3.00.0080.0118.66

preferences:
76.8 ms | 401 KiB | 5 Q