3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Crasher extends DateInterval { public function __construct($time_spec) { echo "Yes i did it, with the next statement it gives a segfault\n"; // It doesn't matter if we take the y parameter or any other. $this->y = 3; } } $c = new Crasher('blah'); ?>

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.60.0100.01016.63
8.3.50.0210.01217.62
8.3.40.0110.00418.80
8.3.30.0130.00618.85
8.3.20.0000.00818.73
8.3.10.0060.00320.66
8.3.00.0050.00519.38
8.2.180.0150.00316.50
8.2.170.0090.00922.96
8.2.160.0110.00421.05
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0080.00019.83
8.2.110.0060.00320.94
8.2.100.0000.01217.91
8.2.90.0030.00619.28
8.2.80.0040.00418.03
8.2.70.0060.00317.63
8.2.60.0050.00317.68
8.2.50.0050.00318.07
8.2.40.0040.00418.28
8.2.30.0080.00017.91
8.2.20.0040.00417.46
8.2.10.0040.00417.60
8.2.00.0070.00017.50
8.1.280.0130.00725.92
8.1.270.0040.00424.66
8.1.260.0000.00826.35
8.1.250.0050.00228.09
8.1.240.0050.00520.83
8.1.230.0090.00321.03
8.1.220.0040.00417.74
8.1.210.0000.00818.89
8.1.200.0080.00317.36
8.1.190.0060.00317.53
8.1.180.0000.00818.10
8.1.170.0040.00418.74
8.1.160.0000.00818.74
8.1.150.0000.00718.63
8.1.140.0030.00717.45
8.1.130.0080.00017.74
8.1.120.0080.00017.52
8.1.110.0070.00017.44
8.1.100.0000.00717.37
8.1.90.0030.00417.43
8.1.80.0070.00017.42
8.1.70.0030.00317.35
8.1.60.0060.00317.51
8.1.50.0000.00717.39
8.1.40.0000.00717.38
8.1.30.0050.00317.67
8.1.20.0030.00617.65
8.1.10.0030.00617.56
8.1.00.0040.00417.46
8.0.300.0000.00820.05
8.0.290.0040.00416.75
8.0.280.0030.00318.45
8.0.270.0040.00417.18
8.0.260.0040.00416.71
8.0.250.0040.00416.78
8.0.240.0070.00016.96
8.0.230.0030.00416.83
8.0.220.0000.00816.80
8.0.210.0040.00416.74
8.0.200.0030.00316.87
8.0.190.0000.00716.96
8.0.180.0000.00816.75
8.0.170.0080.00016.78
8.0.160.0000.00716.88
8.0.150.0060.00316.66
8.0.140.0060.00616.85
8.0.130.0000.00813.22
8.0.120.0000.00816.64
8.0.110.0000.00716.70
8.0.100.0070.00016.86
8.0.90.0040.00416.90
8.0.80.0080.00816.75
8.0.70.0030.00316.95
8.0.60.0040.00416.68
8.0.50.0030.00516.68
8.0.30.0080.01117.14
8.0.20.0080.01117.08
8.0.10.0040.00416.79
8.0.00.0130.00816.73
7.4.330.0020.00212.87
7.4.320.0000.00616.37
7.4.300.0070.00016.43
7.4.290.0000.00716.53
7.4.280.0050.00216.61
7.4.270.0070.00016.52
7.4.260.0000.00513.29
7.4.250.0090.00016.54
7.4.240.0070.00016.53
7.4.230.0070.00016.49
7.4.220.0090.00916.56
7.4.210.0070.01016.68
7.4.200.0000.00716.32
7.4.190.0000.00816.74
7.4.160.0160.00616.77
7.4.150.0040.01316.57
7.4.140.0090.01016.53
7.4.130.0060.01016.48
7.4.120.0030.01416.59
7.4.110.0100.00716.54
7.4.100.0080.00816.54
7.4.90.0110.00716.30
7.4.80.0150.00816.33
7.4.70.0170.00016.32
7.4.60.0030.01916.43
7.4.50.0040.00416.52
7.4.40.0030.00916.38
7.4.30.0000.01616.67
7.4.00.0000.01415.02
7.3.330.0030.00313.13
7.3.320.0050.00013.16
7.3.310.0000.00716.33
7.3.300.0000.00716.26
7.3.290.0100.00616.30
7.3.280.0130.00716.28
7.3.270.0030.01416.56
7.3.260.0110.00716.37
7.3.250.0160.00316.54
7.3.240.0090.00916.27
7.3.230.0070.01016.48
7.3.210.0080.00816.48
7.3.200.0030.01319.39
7.3.190.0090.00916.58
7.3.180.0030.01316.38
7.3.170.0120.00416.43
7.3.160.0000.01516.37
7.3.120.0040.00815.01
7.3.10.0070.00716.35
7.3.00.0100.00316.67
7.2.330.0150.00816.77
7.2.320.0130.00616.44
7.2.310.0070.01416.66
7.2.300.0100.01016.61
7.2.290.0110.01016.76
7.2.130.0000.01816.77
7.2.120.0070.00317.00
7.2.110.0000.01516.65
7.2.100.0060.00916.94
7.2.90.0080.00816.69
7.2.80.0070.01016.96
7.2.70.0090.00316.87
7.2.60.0070.00717.02
7.2.50.0100.00016.63
7.2.40.0130.00316.92
7.2.30.0040.00816.64
7.2.20.0060.00616.91
7.2.10.0030.01317.01
7.2.00.0030.01018.08
7.1.250.0120.00015.84
7.1.240.0030.01515.50
7.1.230.0060.00615.53
7.1.220.0090.00015.41
7.1.210.0070.01015.75
7.1.200.0110.00615.71
7.1.190.0030.01015.67
7.1.180.0040.00415.68
7.1.170.0040.01115.82
7.1.160.0100.00315.84
7.1.150.0030.01415.80
7.1.140.0000.00815.64
7.1.130.0050.00515.74
7.1.120.0110.00015.75
7.1.110.0070.00415.75
7.1.100.0070.00516.97
7.1.90.0040.01115.70
7.1.80.0060.00615.77
7.1.70.0050.00516.33
7.1.60.0050.01217.56
7.1.50.0050.01116.29
7.1.40.0040.01015.64
7.1.30.0090.00615.59
7.1.20.0030.01015.55
7.1.10.0080.00515.66
7.1.00.0020.03319.02
7.0.330.0110.00415.14
7.0.320.0070.00715.46
7.0.310.0030.00915.25
7.0.300.0060.00315.43
7.0.290.0080.00315.30
7.0.280.0040.00815.29
7.0.270.0120.00315.54
7.0.260.0040.00715.07
7.0.250.0000.00915.57
7.0.240.0000.00915.36
7.0.230.0060.00615.33
7.0.220.0070.00315.49
7.0.210.0030.00615.13
7.0.200.0080.00215.94
7.0.190.0090.00315.59
7.0.180.0090.00615.36
7.0.170.0030.00715.49
7.0.160.0070.00715.11
7.0.150.0070.00715.45
7.0.140.0020.04118.61
7.0.130.0040.00715.23
7.0.120.0050.03818.74
7.0.110.0000.01515.55
7.0.100.0060.00615.39
7.0.90.0060.00615.53
7.0.80.0000.00915.63
7.0.70.0120.00415.51
7.0.60.0050.04717.67
7.0.50.0060.02316.65
7.0.40.0020.03016.88
7.0.30.0120.03716.72
7.0.20.0210.03616.89
7.0.10.0100.04016.81
7.0.00.0090.04716.83
5.6.380.0030.00614.46
5.6.370.0040.00814.50
5.6.360.0000.00914.32
5.6.350.0000.01514.28
5.6.340.0070.00614.05
5.6.330.0000.00914.52
5.6.320.0080.00014.20
5.6.310.0070.00414.11
5.6.300.0100.00314.46
5.6.290.0060.00614.32
5.6.280.0050.04817.67
5.6.270.0040.00814.38
5.6.260.0090.00314.44
5.6.250.0000.01014.36
5.6.240.0110.00314.51
5.6.230.0060.00914.30
5.6.220.0080.00414.50
5.6.210.0020.04217.42
5.6.200.0050.02516.19
5.6.190.0030.04717.54
5.6.180.2220.02717.37
5.6.170.0190.02117.48
5.6.160.0000.03317.56
5.6.150.0010.02616.24
5.6.140.0130.03516.23
5.6.130.0080.02016.32
5.6.120.0030.02417.60
5.6.110.0050.03017.71
5.6.100.0070.03417.78
5.6.90.0030.03517.66
5.6.80.0030.02817.44
5.6.70.2150.01717.42
5.6.60.0050.00814.47
5.6.50.0060.00614.23
5.6.40.0060.00614.29
5.6.30.0050.00514.22
5.6.20.0090.00314.24
5.6.10.0110.00414.17
5.6.00.0100.00314.35
5.5.380.0040.00411.20
5.5.370.0060.00010.91
5.5.360.0030.00711.12
5.5.350.0080.03815.72
5.5.340.0050.02014.50
5.5.330.0030.02715.94
5.5.320.0160.03015.56
5.5.310.0080.02415.87
5.5.300.0050.02214.54
5.5.290.0090.04014.57
5.5.280.0020.04416.11
5.5.270.0120.04015.80
5.5.260.0030.03716.07
5.5.250.0070.04515.95
5.5.240.0050.04015.80
5.5.230.0000.00711.04
5.5.220.0000.00511.00
5.5.210.0040.00811.22
5.5.200.0000.00710.98
5.5.190.0070.00011.29
5.5.180.0060.00311.41
5.5.170.0060.00611.13
5.5.160.0030.00511.03
5.5.150.0030.00611.08
5.5.140.0060.00611.30
5.5.130.0000.00611.04
5.5.120.0000.00711.33
5.5.110.0000.01011.24
5.5.100.0030.00711.12
5.5.90.0060.00011.28
5.5.80.0070.00310.92
5.5.70.0030.00310.87
5.5.60.0000.00511.25
5.5.50.0090.00010.84
5.5.40.0060.00610.59
5.5.30.0060.00010.74
5.5.20.0050.00511.23
5.5.10.0040.00410.72
5.5.00.0040.00410.49
5.4.450.0260.02816.58
5.4.440.0130.02616.72
5.4.430.0070.02516.75
5.4.420.0290.02016.49
5.4.410.0450.02116.52
5.4.400.0350.02516.63
5.4.390.0310.02216.54
5.4.380.0150.02216.59
5.4.370.0130.02516.59
5.4.360.0280.01716.54
5.4.350.0330.02216.61
5.4.340.0160.02516.48
5.4.330.0060.00011.19
5.4.320.0340.01816.72
5.4.310.0330.02216.65
5.4.300.0130.02416.71
5.4.290.0310.02516.69
5.4.280.0110.01816.66
5.4.270.0090.01816.62
5.4.260.0100.02316.63
5.4.250.0050.02016.46
5.4.240.0330.02016.61
5.4.230.0260.02816.61
5.4.220.0250.02516.46
5.4.210.0240.02416.61
5.4.200.0080.02216.54
5.4.190.0070.02216.53
5.4.180.0100.02516.48
5.4.170.0110.01616.39
5.4.160.0130.01216.51
5.4.150.0180.02516.58
5.4.140.0200.02516.51
5.4.130.0260.01016.61
5.4.120.0080.01816.50
5.4.110.0260.02116.57
5.4.100.0170.02116.56
5.4.90.0120.02516.65
5.4.80.0170.02016.58
5.4.70.0220.02616.56
5.4.60.0300.02216.54
5.4.50.0100.02016.52
5.4.40.0090.03216.53
5.4.30.0070.02616.58
5.4.20.0120.02416.47
5.4.10.0070.02316.56
5.4.00.0050.02216.38
5.3.290.0280.03116.48
5.3.280.0370.01716.23
5.3.270.0100.02316.37
5.3.260.0130.02416.20
5.3.250.0260.02016.37
5.3.240.0310.01716.23
5.3.230.0230.02316.33
5.3.220.0320.02316.09
5.3.210.0210.02016.20
5.3.200.0210.02316.21
5.3.190.0310.01816.24
5.3.180.0180.01916.26
5.3.170.0230.02716.30
5.3.160.0080.02116.28
5.3.150.0080.02016.17
5.3.140.0050.02316.14
5.3.130.0130.02216.16
5.3.120.0030.02616.14
5.3.110.0350.02016.14
5.3.100.0070.01916.09
5.3.90.0270.02316.17
5.3.80.0300.01716.09
5.3.70.0130.03216.09
5.3.60.0380.03016.09
5.3.50.0250.01816.09
5.3.40.0080.02216.09
5.3.30.0120.01716.10
5.3.20.0080.01516.09
5.3.10.0280.01716.09
5.3.00.0170.01817.67
5.2.170.0080.01516.09
5.2.160.0110.02816.09
5.2.150.0090.01516.09
5.2.140.0050.01816.09
5.2.130.0150.01916.09
5.2.120.0230.01816.09
5.2.110.0210.01317.67
5.2.100.0100.01517.67
5.2.90.0150.02017.67
5.2.80.0130.02017.67
5.2.70.0190.01617.67
5.2.60.0260.01817.67
5.2.50.0050.02617.67
5.2.40.0220.01617.67
5.2.30.0100.01817.67
5.2.20.0130.02717.67
5.2.10.0040.01917.67
5.2.00.0080.01517.67
5.1.60.0060.01317.67
5.1.50.0050.01317.67
5.1.40.0240.01317.67
5.1.30.0220.01417.67
5.1.20.0220.01717.67
5.1.10.0070.01517.67
5.1.00.0050.02017.67
5.0.50.0040.01517.67
5.0.40.0070.00717.67
5.0.30.0000.01817.67
5.0.20.0090.01017.67
5.0.10.0000.01117.67
5.0.00.0020.01917.67
4.4.90.0080.01017.67
4.4.80.0020.01017.67
4.4.70.0040.00917.67
4.4.60.0050.01017.67
4.4.50.0070.01117.67
4.4.40.0040.01117.67
4.4.30.0020.00917.67
4.4.20.0080.01017.67
4.4.10.0050.00817.67
4.4.00.0020.01317.67
4.3.110.0030.00817.67
4.3.100.0070.00817.67
4.3.90.0100.00917.67
4.3.80.0130.01517.67
4.3.70.0070.00717.67
4.3.60.0050.01017.67
4.3.50.0080.01117.67
4.3.40.0020.01317.67
4.3.30.0030.01017.67
4.3.20.0110.00817.67
4.3.10.0040.01117.67
4.3.00.0000.00917.67

preferences:
70.07 ms | 401 KiB | 5 Q