3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Person { public $dad; public function __destruct() { $this->dad = null; /* no segfault if this is commented out */ } } class Dad extends Person { public $son; public function __construct() { $this->son = new Person; $this->son->dad = $this; /* no segfault if this is commented out */ } public function __destruct() { $dad = new dad; parent::__destruct(); /* segfault here */ } } $o = new Dad; unset($o); echo "ok\n";

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.0900.64051.01
8.3.50.0550.81351.43
8.3.40.0340.34536.96
8.3.30.0400.34037.39
8.3.20.0200.18038.64
8.3.10.0160.17541.79
8.3.00.0100.17837.42
8.2.180.0230.65252.59
8.2.170.0560.31137.16
8.2.160.0470.32138.50
8.2.150.0100.20037.34
8.2.140.0430.20938.15
8.2.130.0000.18540.25
8.2.120.0030.18040.44
8.2.110.0130.27340.41
8.2.100.0170.29536.21
8.2.90.0200.27137.27
8.2.80.0170.27835.88
8.2.70.0230.27735.77
8.2.60.0130.31736.09
8.2.50.0170.27235.80
8.2.40.0130.27038.11
8.2.30.0130.29736.80
8.2.20.0070.28835.93
8.2.10.0100.28636.23
8.2.00.0260.26535.87
8.1.280.1800.82250.51
8.1.270.0070.18942.11
8.1.260.0270.17337.09
8.1.250.0170.17442.04
8.1.240.0030.28542.02
8.1.230.0270.28937.31
8.1.220.0100.28835.75
8.1.210.0100.28435.52
8.1.200.0100.31335.44
8.1.190.0130.28035.31
8.1.180.0130.30035.44
8.1.170.0130.26736.66
8.1.160.0100.25340.11
8.1.150.0100.27336.69
8.1.140.0070.30035.59
8.1.130.0130.26636.07
8.1.120.0330.26735.64
8.1.110.0200.27335.59
8.1.100.0200.27235.55
8.1.90.0100.28942.00
8.1.80.0270.26541.84
8.1.70.0100.29641.90
8.1.60.0200.29342.01
8.1.50.0160.28842.03
8.1.40.0130.29642.09
8.1.30.0170.29642.14
8.1.20.0270.27342.08
8.1.10.0270.57961.44
8.1.00.0170.59161.34
8.0.300.0200.56554.68
8.0.290.0330.60750.98
8.0.280.0130.62652.46
8.0.270.0170.63051.37
8.0.260.0300.59051.28
8.0.250.0200.60851.00
8.0.240.0270.61550.98
8.0.230.0300.64150.96
8.0.220.0300.59650.78
8.0.210.0200.61450.77
8.0.200.0300.59850.88
8.0.190.0300.64950.85
8.0.180.0300.61850.84
8.0.170.0370.62250.80
8.0.160.0230.64950.78
8.0.150.0400.61450.74
8.0.140.0330.62750.88
8.0.130.1191.38479.36
8.0.120.0300.63450.76
8.0.110.0230.61850.86
8.0.100.0270.63750.73
8.0.90.0200.63450.68
8.0.80.0890.94550.80
8.0.70.0300.62450.89
8.0.60.0200.67350.91
8.0.50.0230.62550.72
8.0.30.0800.94251.10
8.0.20.0890.96050.88
8.0.10.0270.63850.81
8.0.00.0981.16450.76
7.4.330.0200.59847.18
7.4.320.0230.59850.57
7.4.300.0300.62850.57
7.4.290.0330.62150.65
7.4.280.0330.68850.63
7.4.270.0270.63550.40
7.4.260.0400.59450.51
7.4.250.0400.62650.44
7.4.240.0230.61750.49
7.4.230.0270.62850.54
7.4.220.0661.06450.61
7.4.210.0650.99650.54
7.4.200.0170.62550.49
7.4.190.0270.61550.48
7.4.160.0700.91050.48
7.4.150.0870.95150.64
7.4.140.0700.96950.64
7.4.130.0771.23250.56
7.4.120.0920.90450.63
7.4.110.0591.06150.43
7.4.100.0821.04250.51
7.4.90.1031.00450.47
7.4.80.0961.25950.69
7.4.70.0891.02350.64
7.4.60.0700.98450.41
7.4.50.0270.45850.51
7.4.40.1041.06250.51
7.4.30.0680.95950.55
7.4.00.0270.82949.08
7.3.330.1031.55979.43
7.3.320.0601.23479.39
7.3.310.0170.63150.30
7.3.300.0270.62250.30
7.3.290.0831.01750.32
7.3.280.0801.21450.40
7.3.270.0760.95550.61
7.3.260.0621.05950.64
7.3.250.0791.03250.45
7.3.240.0791.03850.57
7.3.230.0591.03350.35
7.3.210.0621.05750.54
7.3.200.1061.58950.46
7.3.190.0731.57450.39
7.3.180.0690.91050.65
7.3.170.0831.09750.43
7.3.160.0730.92050.40
7.3.120.0230.84749.14
7.3.10.1090.84650.51
7.3.00.0600.90550.87
7.2.330.1011.17750.71
7.2.320.0661.17251.10
7.2.310.0861.29650.57
7.2.300.0831.14451.06
7.2.290.0721.10250.99
7.2.130.0900.96451.22
7.2.120.0960.97550.98
7.2.110.0870.92351.30
7.2.100.1340.95551.29
7.2.90.1310.96051.06
7.2.80.1350.94950.89
7.2.70.1360.93651.03
7.2.60.1430.83451.26
7.2.50.1110.96950.87
7.2.40.1060.97551.19
7.2.30.1000.96150.95
7.2.20.1280.97251.02
7.2.10.1100.96451.11
7.2.00.0630.91152.33
7.1.250.0070.02416.03
7.1.200.0100.00616.09
7.1.100.0040.01418.09
7.1.70.0000.01317.26
7.1.60.0040.02919.46
7.1.50.0140.03417.00
7.1.00.0000.08322.74
7.0.200.0170.01715.67
7.0.140.0130.07022.48
7.0.60.0100.04020.80
7.0.50.0100.08017.88
7.0.40.0070.09020.25
7.0.30.0330.06020.07
7.0.20.0230.06020.12
7.0.10.0200.04320.10
7.0.00.0100.09020.23
5.6.280.0100.30769.18
5.6.210.0130.31069.09
5.6.200.0100.25066.63
5.6.190.0200.30068.83
5.6.180.5730.23068.86
5.6.170.0630.24768.88
5.6.160.0270.28768.80
5.6.150.0100.23766.67
5.6.140.0230.28766.70
5.6.130.0230.25366.67
5.6.120.0230.30069.52
5.6.110.0270.30069.49
5.6.100.0170.23769.62
5.6.90.0230.28369.61
5.6.80.0330.26369.00
5.6.70.0270.23368.70
5.5.350.0500.23068.95
5.5.340.0230.23066.40
5.5.330.0130.31368.49
5.5.320.0700.24068.60
5.5.310.0800.26368.70
5.5.300.0200.29766.47
5.5.290.0270.29066.43
5.5.280.0270.31069.16
5.5.270.0130.23769.36
5.5.260.0200.29069.16
5.5.250.0270.28769.10
5.5.240.0170.28068.64
5.4.450.0770.23067.95
5.4.440.0370.22367.58
5.4.430.0430.22767.72
5.4.420.0600.33067.82
5.4.410.0430.26367.74
5.4.400.0500.25367.51
5.4.390.6600.22067.29
5.4.380.0600.27067.51
5.4.370.0430.22067.54
5.4.360.0470.23367.26
5.4.350.0430.24367.73
5.4.340.0430.26367.49
5.4.320.0530.21767.51
5.4.310.0800.25767.41
5.4.300.0500.24067.49
5.4.290.0380.33160.96
5.4.280.0400.31660.86
5.4.270.0230.32960.86
5.4.260.0330.39360.86
5.4.250.0330.38660.85
5.4.240.0350.51160.85
5.4.230.0450.43160.85
5.4.220.0280.27460.85
5.4.210.0300.33960.84
5.4.200.0300.37960.85
5.4.190.0470.47068.66
5.4.180.0290.48268.65
5.4.170.0370.38668.66
5.4.160.0280.39768.66
5.4.150.0340.50768.66
5.4.140.0330.56968.34
5.4.130.0390.45468.34
5.4.120.0300.52468.29
5.4.110.0430.62768.29
5.4.100.0400.68468.29
5.4.90.0360.67668.28
5.4.80.0280.47568.29
5.4.70.0270.47868.28
5.4.60.0420.61268.28
5.4.50.0430.64268.28
5.4.40.0520.75968.27
5.4.30.0340.52768.27
5.4.20.0390.64968.27
5.4.10.0440.70768.27
5.4.00.0830.99367.76
5.3.290.4500.21772.05
5.3.280.1170.59370.20
5.3.270.0940.57570.21
5.3.260.0870.63970.20
5.3.250.0600.62370.21
5.3.240.0420.56270.21
5.3.230.0450.53770.20
5.3.220.0390.57770.16
5.3.210.0480.56870.16
5.3.200.0700.72670.16
5.3.190.0620.59070.17
5.3.180.1091.02870.16
5.3.170.0610.59570.17
5.3.160.0650.60970.16
5.3.150.0610.65470.16
5.3.140.0770.97870.87
5.3.130.0610.54770.15
5.3.120.0490.55170.15
5.3.110.0440.50570.15
5.3.100.0620.69069.64
5.3.90.0640.69669.63
5.3.80.0530.57469.61
5.3.70.0630.56769.61
5.3.60.0400.42869.60
5.3.50.0450.38069.55
5.3.40.0350.32870.04
5.3.30.0400.41169.51
5.3.20.0270.39269.29
5.3.10.0280.35969.25
5.3.00.0410.46369.23
5.2.170.0320.44268.38
5.2.160.0330.42068.38
5.2.150.0340.39668.38
5.2.140.0400.35468.38
5.2.130.0390.45268.34
5.2.120.0400.47868.34
5.2.110.0410.57968.34
5.2.100.0410.47168.33
5.2.90.0250.29868.34
5.2.80.0090.04212.18
5.2.70.0040.04912.18
5.2.60.0070.05212.14
5.2.50.0340.33468.07
5.2.40.0320.37068.05
5.2.30.0250.38968.03
5.2.20.0260.36868.02
5.2.10.0350.28467.93
5.2.00.2672.237458.43
5.1.60.0100.0369.96
5.1.50.0110.0349.96
5.1.40.0130.0329.95
5.1.30.0070.04110.29
5.1.20.0070.0428.39
5.1.10.0100.0388.12
5.1.00.0130.0228.12
5.0.50.0030.0256.60
5.0.40.0090.0236.46
5.0.30.0060.0416.27
5.0.20.0070.0256.23
5.0.10.0050.0286.21
5.0.00.0050.0356.21
4.4.90.0040.0174.78
4.4.80.0040.0164.75
4.4.70.0060.0154.75
4.4.60.0040.0174.75
4.4.50.0020.0184.77
4.4.40.0030.0274.71
4.4.30.0040.0164.76
4.4.20.0040.0164.84
4.4.10.0060.0164.84
4.4.00.0040.0334.76
4.3.110.0020.0254.67
4.3.100.0050.0224.66
4.3.90.0040.0224.63
4.3.80.0030.0344.59
4.3.70.0050.0184.63
4.3.60.0050.0154.63
4.3.50.0020.0184.63
4.3.40.0020.0274.54
4.3.30.0030.0173.30
4.3.20.0030.0183.28
4.3.10.0040.0153.23
4.3.00.0030.03313.91

preferences:
57.69 ms | 401 KiB | 5 Q