3v4l.org

run code in 300+ PHP versions simultaneously
<?php class SomeClass {} $instance = new SomeClass(); $reference = &$instance; echo (($instance === $reference) ? 'TRUE' : 'FALSE') ."\n"; $assigned = $instance; echo (($instance === $assigned) ? 'TRUE' : 'FALSE') ."\n"; $instance = null; echo (isset($instance) ? $instance : "NULL") . "\n"; echo (isset($assigned) ? $assigned : "NULL") . "\n"; echo (isset($reference) ? $reference : "NULL") . "\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.40.0140.00018.79
8.3.30.0120.00318.71
8.3.20.0070.00020.31
8.3.10.0040.00423.56
8.3.00.0040.00423.51
8.2.170.0070.00722.96
8.2.160.0130.00020.35
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00719.77
8.2.120.0040.00426.35
8.2.110.0030.00621.06
8.2.100.0040.00817.78
8.2.90.0080.00019.22
8.2.80.0080.00017.97
8.2.70.0030.00617.63
8.2.60.0070.00317.93
8.2.50.0060.00318.07
8.2.40.0030.00620.48
8.2.30.0050.00219.45
8.2.20.0000.00817.80
8.2.10.0000.00718.10
8.2.00.0040.00418.13
8.1.270.0080.00023.87
8.1.260.0060.00628.09
8.1.250.0040.00428.09
8.1.240.0080.00422.42
8.1.230.0080.00419.16
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0080.00417.25
8.1.190.0030.00617.35
8.1.180.0100.00018.10
8.1.170.0060.00318.64
8.1.160.0000.00720.82
8.1.150.0030.00718.78
8.1.140.0000.00819.63
8.1.130.0000.00717.72
8.1.120.0030.00317.54
8.1.110.0080.00017.41
8.1.100.0070.00017.45
8.1.90.0030.00617.45
8.1.80.0080.00017.45
8.1.70.0000.00817.36
8.1.60.0050.00317.59
8.1.50.0030.00617.57
8.1.40.0050.00317.55
8.1.30.0090.00017.61
8.1.20.0020.00517.55
8.1.10.0000.00717.58
8.1.00.0040.00417.52
8.0.300.0040.00418.77
8.0.290.0060.00316.75
8.0.280.0000.00718.48
8.0.270.0040.00417.15
8.0.260.0030.00317.32
8.0.250.0030.00317.04
8.0.240.0000.00816.98
8.0.230.0000.00616.87
8.0.220.0030.00317.00
8.0.210.0030.00316.84
8.0.200.0000.00616.90
8.0.190.0040.00417.04
8.0.180.0000.00716.96
8.0.170.0040.00417.02
8.0.160.0080.00017.06
8.0.150.0040.00416.86
8.0.140.0030.00516.89
8.0.130.0050.00013.46
8.0.120.0080.00016.91
8.0.110.0040.00416.84
8.0.100.0070.00017.03
8.0.90.0050.00316.89
8.0.80.0070.01017.02
8.0.70.0000.00816.79
8.0.60.0040.00416.94
8.0.50.0040.00416.95
8.0.30.0120.01016.98
8.0.20.0140.00917.40
8.0.10.0040.00416.97
8.0.00.0080.01016.73
7.4.330.0000.00516.71
7.4.320.0050.00216.42
7.4.300.0070.00016.55
7.4.290.0070.00316.61
7.4.280.0030.00616.61
7.4.270.0000.00716.45
7.4.260.0070.00016.51
7.4.250.0000.00816.48
7.4.240.0020.00616.53
7.4.230.0000.00716.52
7.4.220.0130.00616.61
7.4.210.0060.00916.51
7.4.200.0040.00416.32
7.4.160.0090.00616.81
7.4.150.0130.00717.40
7.4.140.0120.01017.86
7.4.130.0160.00316.49
7.4.120.0090.00916.59
7.4.110.0130.00416.59
7.4.100.0090.00716.56
7.4.90.0060.01616.68
7.4.80.0150.00319.39
7.4.70.0030.02016.58
7.4.60.0030.01316.54
7.4.50.0080.00616.69
7.4.40.0070.01016.63
7.4.30.0130.00316.62
7.4.00.0090.00914.77
7.3.330.0030.00313.24
7.3.320.0060.00013.38
7.3.310.0070.00016.41
7.3.300.0040.00416.34
7.3.290.0060.01216.44
7.3.280.0090.00516.38
7.3.270.0040.01817.40
7.3.260.0130.00316.34
7.3.250.0120.00816.32
7.3.240.0080.01516.46
7.3.230.0170.00016.58
7.3.210.0060.01316.43
7.3.200.0100.01019.39
7.3.190.0120.00916.53
7.3.180.0100.00816.54
7.3.170.0100.00716.66
7.3.160.0030.01316.57
7.2.330.0150.00416.60
7.2.320.0080.00816.54
7.2.310.0000.01616.79
7.2.300.0100.01316.71
7.2.290.0120.00816.69
7.2.60.0030.00916.59
7.2.00.0030.00619.18
7.1.200.0160.00615.59
7.1.100.0030.00817.86
7.1.70.0050.00316.95
7.1.60.0100.01419.28
7.1.50.0110.00716.65
7.1.00.0030.07722.51
7.0.200.0030.00716.58
7.0.60.0030.08321.75
7.0.50.0130.05317.88
7.0.40.0100.06719.96
7.0.30.0270.06720.19
7.0.20.0200.08720.33
7.0.10.0100.08720.34
7.0.00.0030.05320.07
5.6.280.0000.07721.08
5.6.210.0100.07720.72
5.6.200.0000.04318.29
5.6.190.0000.08720.61
5.6.180.0300.07320.49
5.6.170.0270.06320.56
5.6.160.0130.05320.61
5.6.150.0100.05018.18
5.6.140.0070.08018.24
5.6.130.0000.04318.17
5.6.120.0100.06721.07
5.6.110.0070.08320.98
5.6.100.0100.07720.98
5.6.90.0070.05021.12
5.6.80.0030.06320.38
5.5.350.4300.03720.44
5.5.340.0100.03718.00
5.5.330.0030.04720.31
5.5.320.0570.07020.23
5.5.310.0200.03720.29
5.5.300.0100.07717.98
5.5.290.0070.07018.04
5.5.280.0000.05320.89
5.5.270.0070.08320.64
5.5.260.0100.07720.79
5.5.250.0100.03320.57
5.5.240.0100.05020.16

preferences:
51.71 ms | 400 KiB | 5 Q