3v4l.org

run code in 300+ PHP versions simultaneously
<?php $exception = new \exception(uniqid()); $reference = & $exception; var_dump(spl_object_hash($reference) === spl_object_hash($exception)); var_dump(spl_object_hash($reference) === spl_object_hash($exception = new \exception(uniqid()))); $exception = spl_object_hash($exception = new \exception(uniqid())); var_dump(spl_object_hash($reference) === spl_object_hash($exception));

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)
7.2.00.0070.01118.63
7.1.100.0350.00917.90
7.1.70.0000.00916.97
7.1.60.0090.00919.57
7.1.50.0070.01716.86
7.1.00.0070.07322.31
7.0.200.0070.00316.98
7.0.140.0070.07322.01
7.0.60.0100.08020.02
7.0.50.0030.08017.90
7.0.40.0170.07720.08
7.0.30.0570.05020.05
7.0.20.0400.07320.09
7.0.10.0030.09020.06
7.0.00.0100.06720.18
5.6.280.0000.07721.10
5.6.210.0000.04320.54
5.6.200.0000.06018.16
5.6.190.0030.08320.49
5.6.180.4100.04720.57
5.6.170.0070.05320.38
5.6.160.0100.07720.33
5.6.150.0100.04018.21
5.6.140.0030.08318.16
5.6.130.0100.07318.09
5.6.120.0100.07320.96
5.6.110.0100.08021.04
5.6.100.0070.06320.99
5.6.90.0170.08021.09
5.6.80.0030.04320.50
5.6.70.4100.04720.36
5.5.350.0130.06720.43
5.5.340.0130.06017.89
5.5.330.0100.08020.06
5.5.320.3100.03720.30
5.5.310.0370.07020.34
5.5.300.0130.06318.01
5.5.290.0070.07317.93
5.5.280.0030.06320.96
5.5.270.0070.09020.88
5.5.260.0070.03720.86
5.5.250.0030.07320.75
5.5.240.0200.02720.28
5.4.450.0070.06319.48
5.4.440.1070.06719.41
5.4.430.0770.05719.37
5.4.420.1030.04319.08
5.4.410.0770.05319.29
5.4.400.0770.05718.96
5.4.390.0730.06019.19
5.4.380.0100.06318.71
5.4.370.0130.06318.59
5.4.360.0270.05018.43
5.4.350.0330.05718.70
5.4.340.0130.05318.66
5.4.320.0130.07018.68
5.4.310.0070.06718.60
5.4.300.0100.06018.50
5.4.290.0130.06018.74
5.4.280.0200.06018.74
5.4.270.0200.05018.51
5.4.260.0230.05018.64
5.4.250.0200.05318.68
5.4.240.0170.06018.62
5.4.230.0570.04018.44
5.4.220.0170.05318.73
5.4.210.0130.05718.48
5.4.200.0030.06016.46
5.4.190.0230.04318.58
5.4.180.0200.05318.64
5.4.170.0230.05318.44
5.4.160.0130.05318.55
5.4.150.0200.04718.63
5.4.140.0230.04716.17
5.4.130.0170.05016.19
5.4.120.0330.04716.21
5.4.110.0370.03716.30
5.4.100.0230.05716.30
5.4.90.0200.05316.27
5.4.80.0270.04016.20
5.4.70.0130.05316.14
5.4.60.0070.06016.02
5.4.50.0170.05016.03
5.4.40.0300.05016.14
5.4.30.0170.05316.19
5.4.20.0030.06716.23
5.4.10.0230.04716.03
5.4.00.0130.05715.76
5.3.290.0700.06014.61
5.3.280.0200.05314.55
5.3.270.0170.05714.56
5.3.260.0230.05014.51
5.3.250.0130.05714.68
5.3.240.0170.05714.57
5.3.230.0130.05714.66
5.3.220.0200.05014.54
5.3.210.0130.06014.52
5.3.200.0230.04714.49
5.3.190.0200.05314.55
5.3.180.0230.04714.54
5.3.170.0130.05714.64
5.3.160.0330.04714.48
5.3.150.0130.07014.63
5.3.140.0200.05714.47
5.3.130.0630.05714.51
5.3.120.0370.04314.58
5.3.110.0230.05014.52
5.3.100.0270.04714.13
5.3.90.0100.06014.10
5.3.80.0230.04713.93
5.3.70.0230.05014.17
5.3.60.0200.05013.93
5.3.50.0230.05014.02
5.3.40.0270.04013.95
5.3.30.0200.04713.91
5.3.20.0070.06313.85
5.3.10.0230.04713.81
5.3.00.0200.05013.62
5.2.170.0130.04311.29
5.2.160.0170.04011.29
5.2.150.0170.04011.12
5.2.140.0100.05311.14
5.2.130.0130.04711.02
5.2.120.0130.04311.11
5.2.110.0100.04311.02
5.2.100.0200.04011.11
5.2.90.0130.04711.25
5.2.80.0130.04711.05
5.2.70.0100.04711.15
5.2.60.0100.04011.00
5.2.50.0200.03311.01
5.2.40.0170.03310.96
5.2.30.0000.05010.88
5.2.20.0130.03711.00
5.2.10.0130.04010.91
5.2.00.0030.04710.85
5.1.60.0100.03310.05
5.1.50.0070.03710.04
5.1.40.0130.03310.11
5.1.30.0100.03710.32
5.1.20.0100.04010.41
5.1.10.0030.04310.05
5.1.00.0130.03710.13
5.0.50.0070.0308.63
5.0.40.0100.0238.44
5.0.30.0100.0438.30
5.0.20.0100.0238.39
5.0.10.0030.0308.13
5.0.00.0000.0478.16
4.4.90.0000.0275.93
4.4.80.0100.0175.88
4.4.70.0100.0235.82
4.4.60.0100.0175.94
4.4.50.0030.0235.84
4.4.40.0000.0405.88
4.4.30.0130.0275.89
4.4.20.0100.0275.97
4.4.10.0070.0306.00
4.4.00.0030.0475.91
4.3.110.0070.0305.88
4.3.100.0030.0335.82
4.3.90.0070.0275.86
4.3.80.0000.0375.81
4.3.70.0100.0135.80
4.3.60.0070.0205.78
4.3.50.0030.0235.84
4.3.40.0000.0375.77
4.3.30.0030.0234.62
4.3.20.0000.0274.62
4.3.10.0000.0234.52
4.3.00.0130.0135.93

preferences:
38.55 ms | 401 KiB | 5 Q