3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $b; public function __destruct() { echo "destruct\n"; } } class B { public $a; } function test() { $a = new A(); $b = new B(); $a->b = $b; $b->a = $a; } test(); echo "before destruct\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.0090.00618.43
8.3.50.0070.00716.40
8.3.40.0090.00918.74
8.3.30.0040.01118.71
8.3.20.0040.00421.77
8.3.10.0070.00023.39
8.3.00.0080.00019.56
8.2.180.0040.01118.41
8.2.170.0110.00322.96
8.2.160.0100.00322.31
8.2.150.0110.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00420.55
8.2.120.0030.00626.35
8.2.110.0030.00620.20
8.2.100.0090.00317.72
8.2.90.0030.00617.88
8.2.80.0080.00018.78
8.2.70.0000.00917.80
8.2.60.0070.00018.16
8.2.50.0030.00519.25
8.2.40.0040.00421.18
8.2.30.0040.00419.24
8.2.20.0050.00218.10
8.2.10.0000.00718.00
8.2.00.0070.00017.89
8.1.280.0060.01125.92
8.1.270.0080.00023.91
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00323.91
8.1.230.0000.01121.04
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0030.00617.23
8.1.190.0030.00617.23
8.1.180.0090.00018.10
8.1.170.0040.00420.37
8.1.160.0040.00418.78
8.1.150.0050.00219.94
8.1.140.0040.00419.57
8.1.130.0000.00718.79
8.1.120.0000.00717.30
8.1.110.0070.00017.29
8.1.100.0070.00017.35
8.1.90.0040.00417.28
8.1.80.0040.00417.28
8.1.70.0030.00317.29
8.1.60.0020.00517.46
8.1.50.0030.00517.40
8.1.40.0000.00817.51
8.1.30.0000.00817.49
8.1.20.0040.00417.47
8.1.10.0000.00817.56
8.1.00.0040.00417.50
8.0.300.0040.00418.77
8.0.290.0050.00316.63
8.0.280.0040.00418.36
8.0.270.0030.00417.29
8.0.260.0000.00616.73
8.0.250.0000.00716.86
8.0.240.0000.00816.84
8.0.230.0070.00316.90
8.0.220.0040.00416.73
8.0.210.0040.00216.71
8.0.200.0000.00716.88
8.0.190.0080.00016.90
8.0.180.0050.00216.86
8.0.170.0080.00016.80
8.0.160.0040.00416.79
8.0.150.0050.00216.85
8.0.140.0030.00416.71
8.0.130.0050.00013.22
8.0.120.0030.00516.76
8.0.110.0070.00016.86
8.0.100.0000.00716.85
8.0.90.0000.00716.84
8.0.80.0190.00416.76
8.0.70.0050.00316.65
8.0.60.0000.00716.60
8.0.50.0040.00416.70
8.0.30.0120.00617.29
8.0.20.0110.00817.40
8.0.10.0040.00417.00
8.0.00.0120.00916.59
7.4.330.0050.00015.55
7.4.320.0000.00616.56
7.4.300.0060.00016.66
7.4.290.0090.00016.49
7.4.280.0000.00716.63
7.4.270.0030.00316.52
7.4.260.0030.00513.32
7.4.250.0070.00016.32
7.4.240.0000.00716.60
7.4.230.0040.00316.67
7.4.220.0060.01516.66
7.4.210.0120.00316.58
7.4.200.0040.00416.68
7.4.160.0100.00616.50
7.4.150.0280.03117.40
7.4.140.0090.00817.86
7.4.130.0100.01316.39
7.4.120.0120.00716.53
7.4.110.0120.00816.59
7.4.100.0170.00016.31
7.4.90.0070.01016.47
7.4.80.0060.01019.39
7.4.70.0000.01716.54
7.4.60.0120.00316.49
7.4.50.0090.00616.48
7.4.40.0070.01016.32
7.4.30.0070.01016.46
7.4.00.0140.00014.87
7.3.330.0000.00513.16
7.3.320.0050.00013.16
7.3.310.0070.00016.34
7.3.300.0030.00316.31
7.3.290.0080.00816.33
7.3.280.0070.00816.30
7.3.270.0140.00317.40
7.3.260.0080.00816.29
7.3.250.0080.01116.44
7.3.240.0080.00916.37
7.3.230.0100.00616.34
7.3.210.0120.00316.50
7.3.200.0040.01316.41
7.3.190.0070.01016.27
7.3.180.0030.02016.45
7.3.170.0110.00416.34
7.3.160.0100.00616.58
7.3.10.0070.00716.54
7.3.00.0120.00916.61
7.2.330.0120.00616.79
7.2.320.0070.01216.71
7.2.310.0110.00716.55
7.2.300.0110.00616.64
7.2.290.0070.01016.61
7.2.130.0100.00716.87
7.2.120.0140.00316.52
7.2.110.0070.01516.72
7.2.100.0000.01216.47
7.2.90.0080.00816.86
7.2.80.0100.00716.98
7.2.70.0100.01016.81
7.2.60.0070.00916.94
7.2.50.0100.01016.85
7.2.40.0130.00316.77
7.2.30.0000.01217.02
7.2.20.0150.00916.69
7.2.10.0140.00316.95
7.2.00.0130.00816.93
7.1.250.0130.00615.69
7.1.200.0070.00715.60
7.1.70.0000.00816.98
7.1.60.1070.00733.25
7.1.50.0670.02032.91
7.1.40.0670.01032.60
7.1.30.0730.01732.66
7.1.20.0670.01032.55
7.1.10.0570.01014.41
7.1.00.0600.01714.86
7.0.200.0500.00715.01
7.0.190.0630.01014.54
7.0.180.0430.00714.40
7.0.170.0700.01014.39
7.0.160.1530.00314.32
7.0.150.0570.01014.25
7.0.140.0500.01314.36
7.0.130.0500.00714.70
7.0.120.0400.00714.73
7.0.110.0500.00714.43
7.0.100.0430.01314.35
7.0.90.0430.01014.45
7.0.80.0630.01314.41
7.0.70.0630.01014.29
7.0.60.0530.01314.11
7.0.50.0370.00714.39
7.0.40.0500.01014.70
7.0.30.0370.00714.38
7.0.20.0370.00714.44
7.0.10.0600.01014.58
7.0.00.0430.00314.60

preferences:
59.92 ms | 401 KiB | 5 Q