3v4l.org

run code in 300+ PHP versions simultaneously
<?php $orig = new stdClass(); $orig->test = 'original'; $ptr = & $orig->test; // <--- Setting an unused reference changes the behaviour unset($ptr); // $ptr goes away and $orig->test reverts to a normal unreferenced value $copy = clone $orig; $copy->test = "modified"; die("Orig is: {$orig->test}"); // Gives 'modified' instead of 'original'

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.00716.63
8.3.60.0080.00818.31
8.3.50.0100.00918.26
8.3.40.0040.01118.82
8.3.30.0040.01118.70
8.3.20.0080.00020.32
8.3.10.0000.00821.73
8.3.00.0120.00623.71
8.2.190.0150.00616.75
8.2.180.0120.00318.55
8.2.170.0110.00722.96
8.2.160.0150.00020.51
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0040.00420.94
8.2.120.0060.00326.35
8.2.110.0060.00322.08
8.2.100.0080.00417.91
8.2.90.0000.00819.01
8.2.80.0040.00417.97
8.2.70.0030.00617.50
8.2.60.0050.00317.80
8.2.50.0030.00618.13
8.2.40.0070.00020.59
8.2.30.0070.00019.11
8.2.20.0000.00818.04
8.2.10.0000.00817.92
8.2.00.0000.00718.06
8.1.280.0100.00325.92
8.1.270.0040.00422.14
8.1.260.0070.00026.35
8.1.250.0050.00228.09
8.1.240.0060.00322.20
8.1.230.0070.00417.70
8.1.220.0070.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0050.00317.23
8.1.180.0060.00318.10
8.1.170.0040.00418.43
8.1.160.0000.00718.89
8.1.150.0040.00418.80
8.1.140.0000.00817.32
8.1.130.0030.00318.83
8.1.120.0070.00317.28
8.1.110.0070.00017.38
8.1.100.0030.00517.39
8.1.90.0050.00217.34
8.1.80.0040.00417.29
8.1.70.0000.00717.32
8.1.60.0000.01017.41
8.1.50.0060.00317.41
8.1.40.0040.00417.40
8.1.30.0080.00017.69
8.1.20.0040.00417.71
8.1.10.0040.00417.55
8.1.00.0080.00017.38
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0030.00318.37
8.0.270.0000.00818.63
8.0.260.0000.00716.81
8.0.250.0000.00616.91
8.0.240.0000.00716.90
8.0.230.0000.00717.05
8.0.220.0030.00716.88
8.0.210.0030.00316.98
8.0.200.0000.00716.97
8.0.190.0080.00316.98
8.0.180.0040.00417.02
8.0.170.0070.00017.00
8.0.160.0000.00717.01
8.0.150.0050.00316.90
8.0.140.0070.00016.91
8.0.130.0000.00513.40
8.0.120.0000.00916.94
8.0.110.0040.00416.95
8.0.100.0040.00416.79
8.0.90.0080.00016.92
8.0.80.0100.01016.86
8.0.70.0030.00616.77
8.0.60.0070.00016.74
8.0.50.0040.00416.95
8.0.30.0100.00717.14
8.0.20.0140.00517.40
8.0.10.0030.00516.82
8.0.00.0140.00616.77
7.4.330.0030.00315.55
7.4.320.0060.00016.35
7.4.300.0060.00016.44
7.4.290.0070.00016.50
7.4.280.0030.00516.52
7.4.270.0030.00316.53
7.4.260.0030.00316.58
7.4.250.0000.00716.31
7.4.240.0030.00316.47
7.4.230.0000.00716.43
7.4.220.0050.01316.51
7.4.210.0130.00616.58
7.4.200.0000.00716.67
7.4.160.0090.00716.52
7.4.150.0120.00617.40
7.4.140.0070.01317.86
7.4.130.0200.00016.50
7.4.120.0120.00816.50
7.4.110.0100.00616.35
7.4.100.0130.00616.58
7.4.90.0120.00616.38
7.4.80.0110.01019.39
7.4.70.0090.01316.59
7.4.60.0080.00816.54
7.4.50.0060.00616.50
7.4.40.0090.01316.59
7.4.30.0060.00916.27
7.4.10.0060.00714.27
7.4.00.0060.01114.82
7.3.330.0060.00013.07
7.3.320.0060.00013.25
7.3.310.0040.00416.29
7.3.300.0000.00616.37
7.3.290.0090.00616.33
7.3.280.0090.00616.43
7.3.270.0090.00617.40
7.3.260.0050.01416.50
7.3.250.0170.00916.41
7.3.240.0080.01116.50
7.3.230.0120.00816.24
7.3.210.0030.01416.47
7.3.200.0070.00716.49
7.3.190.0090.01316.57
7.3.180.0070.01316.36
7.3.170.0130.00316.46
7.3.160.0070.01416.52
7.3.130.0000.01814.91
7.3.120.0050.01314.73
7.3.110.0060.01114.99
7.3.100.0060.00914.87
7.3.90.0050.00914.83
7.3.80.0040.00814.87
7.3.70.0040.00714.84
7.3.60.0070.00514.71
7.3.50.0060.00714.67
7.3.40.0070.00514.79
7.3.30.0040.00814.82
7.3.20.0040.00816.74
7.3.10.0080.00616.57
7.3.00.0030.00816.71
7.2.330.0110.00716.69
7.2.320.0170.00016.41
7.2.310.0130.01016.41
7.2.300.0130.01016.78
7.2.290.0130.00316.73
7.2.260.0120.00615.04
7.2.250.0090.00815.13
7.2.240.0040.01315.04
7.2.230.0090.00514.99
7.2.220.0060.00815.02
7.2.210.0030.00914.80
7.2.200.0050.01015.16
7.2.190.0080.00514.99
7.2.180.0070.00715.02
7.2.170.0070.00715.18
7.2.160.0130.00315.16
7.2.150.0070.00716.95
7.2.140.0090.00617.16
7.2.130.0120.00316.73
7.2.120.0070.00716.86
7.2.110.0150.00017.04
7.2.100.0090.00316.80
7.2.90.0130.00316.72
7.2.80.0030.01016.73
7.2.70.0070.01016.96
7.2.60.0020.01317.00
7.2.50.0070.01016.57
7.2.40.0100.00616.49
7.2.30.0100.00616.63
7.2.20.0080.00816.63
7.2.10.0030.00717.15
7.2.00.0140.00517.21
7.1.330.0080.00815.69
7.1.320.0060.00815.77
7.1.310.0050.00815.87
7.1.300.0070.00615.85
7.1.290.0070.00615.59
7.1.280.0040.00915.74
7.1.270.0020.01015.66
7.1.260.0030.01115.85
7.1.250.0100.00315.54
7.1.240.0030.01015.77
7.1.230.0090.00615.68
7.1.220.0040.01415.58
7.1.210.0040.00815.43
7.1.200.0070.00715.59
7.1.190.0030.00815.97
7.1.180.0070.00715.57
7.1.170.0030.01415.61
7.1.160.0040.01115.95
7.1.150.0060.00915.62
7.1.140.0070.00715.62
7.1.130.0040.01115.77
7.1.120.0130.00516.43
7.1.110.0050.00817.01
7.1.100.0100.00516.08
7.1.90.0070.00817.07
7.1.80.0090.00816.93
7.1.70.0090.00916.47
7.1.60.0170.00725.43
7.1.50.0160.01025.31
7.1.40.0130.01025.06
7.1.30.0130.00825.01
7.1.20.0140.00625.16
7.1.10.0050.00616.22
7.1.00.0070.00416.30
7.0.330.0000.01015.15
7.0.320.0090.00615.15
7.0.310.0060.00615.34
7.0.300.0120.00315.45
7.0.290.0040.00815.46
7.0.280.0090.00015.51
7.0.270.0000.01215.40
7.0.260.0100.00615.57
7.0.250.0040.01115.64
7.0.240.0090.00415.42
7.0.230.0000.01615.21
7.0.220.0070.01015.51
7.0.210.0030.01515.43
7.0.200.0080.00415.38
7.0.190.0070.00615.50
7.0.180.0000.01315.30
7.0.170.0100.00315.42
7.0.160.0040.00415.62
7.0.150.0000.01615.50
7.0.140.0030.00615.54
7.0.130.0000.01415.29
7.0.120.0040.00815.52
7.0.110.0030.00915.57
7.0.100.0070.00315.43
7.0.90.0030.00715.46
7.0.80.0070.00415.18
7.0.70.0030.00815.41
7.0.60.0090.00315.40
7.0.50.0060.00915.53
7.0.40.0030.01013.51
7.0.30.0000.01213.47
7.0.20.0040.01113.57
7.0.10.0000.01113.19
7.0.00.0090.00013.46
5.6.400.0070.00714.45
5.6.390.0030.00614.37
5.6.380.0090.00314.72
5.6.370.0100.00314.45
5.6.360.0100.00314.17
5.6.350.0060.00614.30
5.6.340.0070.01014.62
5.6.330.0030.00614.39
5.6.320.0120.00314.07
5.6.310.0070.00314.32
5.6.300.0080.00814.37
5.6.290.0090.00614.31
5.6.280.0070.00314.52
5.6.270.0060.00914.37
5.6.260.0040.01114.67
5.6.250.0070.00414.48
5.6.240.0030.00914.31
5.6.230.0000.01014.51
5.6.220.0120.00314.12
5.6.210.0030.01014.11
5.6.200.0030.01014.67
5.6.190.0070.00714.34
5.6.180.0080.00314.30
5.6.170.0030.00614.55
5.6.160.0060.01214.34
5.6.150.0000.01414.39
5.6.140.0030.00614.30
5.6.130.0100.00314.41
5.6.120.0000.01014.20
5.6.110.0040.01114.29
5.6.100.0040.00414.42
5.6.90.0070.00714.27
5.6.80.0030.01414.16
5.6.70.0070.00714.41
5.6.60.0000.01414.44
5.6.50.0080.00314.26
5.6.40.0000.01714.04
5.6.30.0120.00014.47
5.6.20.0070.01014.23
5.6.10.0120.00314.32
5.6.00.0030.01214.31

preferences:
46.64 ms | 401 KiB | 5 Q