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 $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.0000.01516.75
8.3.60.0120.00318.09
8.3.50.0100.01017.45
8.3.40.0150.00018.84
8.3.30.0030.01218.79
8.3.20.0070.00020.16
8.3.10.0040.00421.64
8.3.00.0080.00023.54
8.2.190.0070.00716.63
8.2.180.0110.00418.66
8.2.170.0100.01022.96
8.2.160.0070.00720.35
8.2.150.0070.00324.18
8.2.140.0090.00024.66
8.2.130.0050.00321.06
8.2.120.0000.00726.35
8.2.110.0070.01020.39
8.2.100.0060.00617.78
8.2.90.0000.00819.17
8.2.80.0040.00417.97
8.2.70.0040.00417.75
8.2.60.0040.00417.90
8.2.50.0060.00318.10
8.2.40.0040.00420.41
8.2.30.0040.00419.24
8.2.20.0000.00818.06
8.2.10.0070.00017.87
8.2.00.0000.00718.02
8.1.280.0100.00725.92
8.1.270.0000.00722.05
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0090.00023.86
8.1.230.0070.00423.95
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0040.00417.35
8.1.190.0030.00617.23
8.1.180.0030.00518.10
8.1.170.0000.00818.65
8.1.160.0000.00718.86
8.1.150.0000.00820.52
8.1.140.0000.00718.95
8.1.130.0030.00318.84
8.1.120.0030.00617.39
8.1.110.0000.00717.26
8.1.100.0040.00417.39
8.1.90.0000.00817.34
8.1.80.0040.00417.29
8.1.70.0000.00817.28
8.1.60.0040.00417.48
8.1.50.0060.00617.45
8.1.40.0050.00217.55
8.1.30.0020.00517.58
8.1.20.0030.00617.64
8.1.10.0080.00017.55
8.1.00.0000.00717.56
8.0.300.0050.00318.77
8.0.290.0000.00816.75
8.0.280.0030.00318.44
8.0.270.0030.00517.26
8.0.260.0030.00316.87
8.0.250.0050.00516.88
8.0.240.0000.00817.09
8.0.230.0080.00017.01
8.0.220.0000.00816.93
8.0.210.0040.00416.84
8.0.200.0000.00817.01
8.0.190.0100.00016.89
8.0.180.0040.00416.96
8.0.170.0030.00317.00
8.0.160.0000.00816.91
8.0.150.0040.00416.91
8.0.140.0040.00416.90
8.0.130.0030.00313.37
8.0.120.0000.00716.93
8.0.110.0040.00416.93
8.0.100.0050.00216.89
8.0.90.0040.00416.80
8.0.80.0070.00716.82
8.0.70.0050.00216.95
8.0.60.0000.00716.85
8.0.50.0000.00816.91
8.0.30.0090.01017.11
8.0.20.0080.01117.40
8.0.10.0050.00216.79
8.0.00.0090.00916.75
7.4.330.0020.00215.55
7.4.320.0000.00816.55
7.4.300.0030.00316.36
7.4.290.0070.00016.44
7.4.280.0040.00416.44
7.4.270.0000.00616.45
7.4.260.0030.00316.52
7.4.250.0000.00716.47
7.4.240.0040.00416.38
7.4.230.0000.00716.25
7.4.220.0120.00616.44
7.4.210.0110.00716.43
7.4.200.0000.00716.53
7.4.160.0120.00916.47
7.4.150.0090.00917.40
7.4.140.0080.01017.86
7.4.130.0070.01316.79
7.4.120.0110.01016.53
7.4.110.0120.00616.37
7.4.100.0150.00316.38
7.4.90.0100.01016.46
7.4.80.0130.00319.39
7.4.70.0040.01616.55
7.4.60.0060.00916.55
7.4.50.0030.01016.64
7.4.40.0120.00616.59
7.4.30.0120.00416.40
7.4.00.0040.01114.89
7.3.330.0000.00613.18
7.3.320.0000.00713.03
7.3.310.0050.00216.38
7.3.300.0060.00016.32
7.3.290.0120.00616.33
7.3.280.0050.01116.32
7.3.270.0110.00717.40
7.3.260.0110.00716.41
7.3.250.0130.00616.56
7.3.240.0080.00916.36
7.3.230.0100.00616.64
7.3.210.0140.00316.53
7.3.200.0030.01316.23
7.3.190.0150.00316.59
7.3.180.0070.01116.43
7.3.170.0180.00316.21
7.3.160.0090.00616.42
7.2.330.0060.01816.40
7.2.320.0140.00416.50
7.2.310.0070.01016.35
7.2.300.0030.01316.69
7.2.290.0090.00616.80
7.2.60.0080.00816.71
7.2.00.0030.01519.40
7.1.200.0030.01015.56
7.1.120.0070.00718.88
7.1.110.0100.00917.89
7.1.100.0100.00317.99
7.1.90.0040.01418.09
7.1.80.0110.00718.24
7.1.70.0030.01316.87
7.1.60.0140.01435.28
7.1.50.0270.01034.85
7.1.40.0200.01334.29
7.1.30.0170.01034.21
7.1.20.0120.01634.40
7.1.10.0060.00816.71
7.1.00.0030.01016.55

preferences:
48.42 ms | 401 KiB | 5 Q