3v4l.org

run code in 300+ PHP versions simultaneously
<?php class c{} class n{} class b{} $c = new c; $c->left = new n; $c->right = new n; $c->left->child = new b; $c->right->child = new b; echo serialize($c) . "\n"; $c->right->child = $c->left->child; echo serialize($c) . "\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.70.0140.00718.80
8.3.60.0040.01116.62
8.3.50.0260.00722.07
8.3.40.0060.01318.79
8.3.30.0120.00618.82
8.3.20.0040.00419.96
8.3.10.0000.00723.48
8.3.00.0070.00319.97
8.2.190.0040.01116.63
8.2.180.0000.01618.66
8.2.170.0070.00722.96
8.2.160.0070.00720.46
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00421.08
8.2.120.0090.00026.35
8.2.110.0070.00321.12
8.2.100.0060.00619.58
8.2.90.0040.00419.21
8.2.80.0000.00917.97
8.2.70.0060.00317.50
8.2.60.0050.00517.93
8.2.50.0080.00018.10
8.2.40.0070.00420.29
8.2.30.0070.00020.66
8.2.20.0030.00617.71
8.2.10.0070.00017.97
8.2.00.0000.00718.09
8.1.280.0100.00325.92
8.1.270.0050.00320.38
8.1.260.0080.00028.09
8.1.250.0080.00028.09
8.1.240.0060.00321.16
8.1.230.0080.00417.46
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0090.00017.23
8.1.180.0050.00318.10
8.1.170.0090.00018.50
8.1.160.0000.00720.66
8.1.150.0030.00618.93
8.1.140.0040.00419.49
8.1.130.0000.00717.73
8.1.120.0000.00817.49
8.1.110.0000.00817.41
8.1.100.0030.00517.48
8.1.90.0000.00717.33
8.1.80.0030.00517.51
8.1.70.0040.00417.38
8.1.60.0080.00017.64
8.1.50.0050.00317.51
8.1.40.0000.00817.46
8.1.30.0050.00317.70
8.1.20.0000.00817.50
8.1.10.0070.00017.50
8.1.00.0090.00017.46
8.0.300.0050.00318.77
8.0.290.0040.00416.63
8.0.280.0070.00018.47
8.0.270.0000.00717.25
8.0.260.0070.00017.39
8.0.250.0030.00516.99
8.0.240.0060.00016.97
8.0.230.0070.00017.00
8.0.220.0030.00716.80
8.0.210.0060.00316.82
8.0.200.0020.00516.89
8.0.190.0000.00716.95
8.0.180.0040.00416.82
8.0.170.0040.00416.92
8.0.160.0030.00516.91
8.0.150.0070.00316.89
8.0.140.0000.00716.72
8.0.130.0000.00613.32
8.0.120.0050.00316.74
8.0.110.0070.00016.81
8.0.100.0040.00416.82
8.0.90.0070.00016.90
8.0.80.0130.00716.80
8.0.70.0040.00416.71
8.0.60.0050.00316.80
8.0.50.0040.00416.96
8.0.30.0090.01217.05
8.0.20.0090.01117.40
8.0.10.0040.00416.84
8.0.00.0090.00816.75
7.4.330.0000.00516.79
7.4.320.0050.00216.57
7.4.300.0030.00316.63
7.4.290.0030.00316.66
7.4.280.0030.00616.38
7.4.270.0000.00716.68
7.4.260.0040.00416.61
7.4.250.0070.00016.54
7.4.240.0020.00516.54
7.4.230.0030.00316.65
7.4.220.0110.00716.53
7.4.210.0070.01716.72
7.4.200.0030.00316.47
7.4.160.0040.01216.46
7.4.150.0060.01217.40
7.4.140.0160.00617.86
7.4.130.0070.01016.54
7.4.120.0050.01316.41
7.4.110.0140.00716.50
7.4.100.0080.00816.35
7.4.90.0120.01216.56
7.4.80.0110.01119.39
7.4.70.0130.00316.54
7.4.60.0100.00616.55
7.4.50.0030.00916.51
7.4.40.0130.00416.49
7.4.30.0060.01716.33
7.4.00.0030.01315.00
7.3.330.0000.00613.26
7.3.320.0030.00313.27
7.3.310.0070.00016.25
7.3.300.0040.00416.17
7.3.290.0100.00716.27
7.3.280.0120.00816.21
7.3.270.0070.01017.40
7.3.260.0100.00716.37
7.3.250.0130.00816.34
7.3.240.0130.00616.43
7.3.230.0120.00616.45
7.3.210.0110.00716.26
7.3.200.0140.00416.40
7.3.190.0040.01616.30
7.3.180.0080.00816.29
7.3.170.0100.00716.30
7.3.160.0100.00716.36
7.3.120.0070.00714.94
7.3.110.0140.00314.75
7.3.100.0100.01014.86
7.3.90.0070.01014.88
7.3.80.0110.00614.44
7.3.70.0070.01014.63
7.3.60.0040.01214.79
7.3.50.0130.00314.43
7.3.40.0100.00614.88
7.3.30.0040.01214.77
7.3.20.0120.00016.64
7.3.10.0060.00716.59
7.3.00.0050.00816.63
7.2.330.0060.01616.74
7.2.320.0160.00316.58
7.2.310.0070.01016.79
7.2.300.0070.01016.84
7.2.290.0120.00416.56
7.2.250.0140.00315.16
7.2.240.0070.01114.48
7.2.230.0000.01315.07
7.2.220.0100.01015.23
7.2.210.0100.01015.34
7.2.200.0030.01015.05
7.2.190.0110.00314.80
7.2.180.0030.01214.70
7.2.170.0040.01415.13
7.2.160.0040.01115.00
7.2.150.0070.00716.89
7.2.140.0030.01316.99
7.2.130.0040.01016.83
7.2.120.0090.00516.77
7.2.110.0060.00516.86
7.2.100.0070.00716.77
7.2.90.0080.00616.93
7.2.80.0100.00216.77
7.2.70.0070.00816.90
7.2.60.0070.00816.97
7.2.50.0040.01016.98
7.2.40.0040.00917.00
7.2.30.0050.01017.01
7.2.20.0050.00916.91
7.2.10.0080.00616.91
7.2.00.0060.00817.56
7.1.330.0080.00815.77
7.1.320.0110.00715.69
7.1.310.0100.00715.50
7.1.300.0040.00715.72
7.1.290.0070.00715.75
7.1.280.0120.00415.96
7.1.270.0080.00415.46
7.1.260.0000.01415.79
7.1.250.0060.00715.84
7.1.240.0060.00815.68
7.1.230.0040.00715.96
7.1.220.0000.01515.65
7.1.210.0030.01015.48
7.1.200.0000.01515.81
7.1.190.0030.01315.83
7.1.180.0000.01415.82
7.1.170.0110.00015.73
7.1.160.0060.00915.81
7.1.150.0100.00315.73
7.1.140.0000.01215.91
7.1.130.0030.01215.90
7.1.120.0060.00915.91
7.1.110.0120.00316.01
7.1.100.0160.00416.83
7.1.90.0000.01015.80
7.1.80.0070.01015.79
7.1.70.0030.00816.29
7.1.60.0100.00316.36
7.1.50.0170.00816.02
7.1.40.0040.01115.68
7.1.30.0030.00915.56
7.1.20.0060.00915.77
7.1.10.0100.00615.73
7.1.00.0100.03319.16
7.0.330.0040.00815.17
7.0.320.0090.00315.31
7.0.310.0060.01015.43
7.0.300.0070.00715.44
7.0.290.0060.00615.36
7.0.280.0070.00715.19
7.0.270.0000.01215.18
7.0.260.0000.01615.28
7.0.250.0070.01015.44
7.0.240.0030.01015.33
7.0.230.0040.01115.55
7.0.220.0090.00615.41
7.0.210.0120.00015.15
7.0.200.0070.00516.00
7.0.190.0070.00715.25
7.0.180.0030.01015.22
7.0.170.0000.01315.24
7.0.160.0000.01015.25
7.0.150.0040.01115.55
7.0.140.0120.00015.39
7.0.130.0030.01415.06
7.0.120.0040.00815.27
7.0.110.0000.01015.47
7.0.100.0000.01415.60
7.0.90.0060.00615.26
7.0.80.0030.01015.45
7.0.70.0100.00315.54
7.0.60.0080.04817.65
7.0.50.0050.04416.65
7.0.40.0070.03016.74
7.0.30.0180.04016.87
7.0.20.0240.04316.80
7.0.10.0030.02516.82
7.0.00.0100.02216.76
5.6.400.0080.00814.59
5.6.390.0000.01514.43
5.6.380.0120.00314.43
5.6.370.0000.01314.30
5.6.360.0070.00714.68
5.6.350.0030.01014.20
5.6.340.0000.01614.34
5.6.330.0070.00714.44
5.6.320.0110.00614.41
5.6.310.0000.01814.60
5.6.300.0040.00814.46
5.6.290.0100.00714.05
5.6.280.0070.01817.59
5.6.270.0000.00814.42
5.6.260.0060.00614.45
5.6.250.0000.01314.71
5.6.240.0080.00414.36
5.6.230.0030.00614.55
5.6.220.0000.01414.52
5.6.210.0100.04217.49
5.6.200.0030.04616.28
5.6.190.0080.03017.58
5.6.180.0200.03817.47
5.6.170.0220.01817.52
5.6.160.0030.04417.48
5.6.150.0110.04316.18
5.6.140.0020.04316.27
5.6.130.0100.03216.24
5.6.120.0030.03817.48
5.6.110.0100.04317.58
5.6.100.0030.04817.61
5.6.90.0070.04217.58
5.6.80.0050.04517.42
5.6.70.0030.01014.31
5.6.60.0080.00414.38
5.6.50.0100.00614.38
5.6.40.0040.00414.18
5.6.30.0000.01714.36
5.6.20.0070.00314.22
5.6.10.0040.00714.28
5.6.00.0030.00614.29
5.5.380.0040.00714.60
5.5.370.0030.00714.24
5.5.360.0030.01314.42
5.5.350.0100.04417.32
5.5.340.0070.04315.93
5.5.330.0100.04217.33
5.5.320.0390.03517.48
5.5.310.0120.02317.37
5.5.300.0050.03316.18
5.5.290.0070.02916.09
5.5.280.0100.02717.62
5.5.270.0100.04117.58
5.5.260.0110.03117.38
5.5.250.0050.03517.36
5.5.240.0060.04417.24
5.5.230.0030.01014.35
5.5.220.0060.00313.96
5.5.210.0000.00814.18
5.5.200.0040.01114.06
5.5.190.0070.00714.37
5.5.180.0060.00614.34
5.5.170.0000.01114.06
5.5.160.0000.00814.36
5.5.150.0060.00613.95
5.5.140.0070.00714.54
5.5.130.0000.01114.47
5.5.120.0080.00814.45
5.5.110.0040.01514.27
5.5.100.0110.00714.30
5.5.90.0030.00514.30
5.5.80.0040.00714.33
5.5.70.0030.01014.15
5.5.60.0070.00714.20
5.5.50.0030.00814.24
5.5.40.0000.01214.16
5.5.30.0000.00913.86
5.5.20.0070.00314.16
5.5.10.0070.00714.10
5.5.00.0040.01214.36

preferences:
54.4 ms | 401 KiB | 5 Q