3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new stdClass; $a->id = 1; $b = $a; $b->id = 2; var_dump($a->id, $b->id); // int 2 e int 2

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.1rc30.0000.00716.84
8.1rc20.0040.00417.04
8.1rc10.0000.00716.79
8.0.120.0000.00816.68
8.0.110.0030.00516.87
8.0.100.0070.00016.69
8.0.90.0040.00416.77
8.0.80.0100.00716.87
8.0.70.0040.00416.68
8.0.60.0040.00416.71
8.0.50.0050.00316.70
8.0.30.0110.00616.93
8.0.20.0110.00617.40
8.0.10.0000.00717.00
8.0.00.0100.01216.84
7.4.250.0060.00316.48
7.4.240.0030.00316.49
7.4.230.0030.00316.44
7.4.220.0160.01016.38
7.4.210.0020.01116.50
7.4.200.0000.00816.34
7.4.150.0060.01117.40
7.4.140.0150.00317.86
7.4.130.0080.01016.51
7.4.120.0120.00916.41
7.4.110.0070.01016.33
7.4.100.0060.01016.52
7.4.90.0070.01016.42
7.4.80.0120.00919.39
7.4.70.0130.00516.42
7.4.60.0130.00316.27
7.4.50.0000.00916.19
7.4.40.0100.00716.39
7.4.30.0060.01216.33
7.4.00.0000.01714.81
7.3.320.0050.00013.17
7.3.310.0070.00016.19
7.3.300.0070.00016.29
7.3.290.0040.01116.30
7.3.280.0080.00816.32
7.3.270.0120.00817.40
7.3.260.0070.01616.35
7.3.250.0080.01116.40
7.3.240.0130.00316.34
7.3.230.0160.00616.49
7.3.210.0070.01016.46
7.3.200.0100.01319.39
7.3.190.0060.01016.09
7.3.180.0060.01016.43
7.3.170.0090.01216.27
7.3.160.0160.00316.46
7.2.330.0130.01016.70
7.2.320.0070.01116.69
7.2.310.0150.00916.57
7.2.300.0000.01616.40
7.2.290.0110.01116.46
7.2.60.0030.01016.87
7.1.200.0000.00915.78
7.1.70.0080.00017.12
7.1.60.0060.01919.59
7.1.50.0100.01316.79
7.1.00.0030.07722.46
7.0.200.0090.00316.74
7.0.60.0070.03719.87
7.0.50.0230.03717.77
7.0.40.0070.05719.99
7.0.30.0230.04020.04
7.0.20.0300.06320.15
7.0.10.0070.09020.18
7.0.00.0130.08020.19
5.6.280.0000.07320.92
5.6.210.0030.07020.75
5.6.200.0030.07318.20
5.6.190.0030.05320.43
5.6.180.0530.07020.35
5.6.170.0330.07720.66
5.6.160.0170.03720.46
5.6.150.0100.07718.13
5.6.140.0070.07018.17
5.6.130.0200.07318.11
5.6.120.0070.06321.03
5.6.110.0030.04321.14
5.6.100.0170.08020.88
5.6.90.0100.06320.95
5.6.80.0000.04020.42
5.5.350.0130.05320.52
5.5.340.0070.08317.93
5.5.330.0070.08320.20
5.5.320.0030.05720.18
5.5.310.0170.04720.20
5.5.300.0100.06317.96
5.5.290.0100.07718.02
5.5.280.0030.04320.80
5.5.270.0000.04720.91
5.5.260.0070.07720.95
5.5.250.0030.07320.68
5.5.240.0070.07320.16
5.4.450.0430.05319.50
5.4.440.0100.06719.39
5.4.430.0130.07319.44
5.4.420.0200.04719.48
5.4.410.0230.04719.50
5.4.400.0070.05719.18
5.4.390.0070.06019.25
5.4.380.0170.05019.22
5.4.370.0130.06319.30
5.4.360.0130.05019.26
5.4.350.0130.05319.27
5.4.340.0230.05019.19
5.4.320.0230.04718.84
5.4.310.0130.06718.89
5.4.300.0230.04019.18
5.4.290.0130.06319.18
5.4.280.0200.05019.30
5.4.270.0170.05318.92
5.4.260.0270.06319.21
5.4.250.0130.07719.03
5.4.240.0200.04319.11
5.4.230.0100.05719.20
5.4.220.0200.05319.11
5.4.210.0100.05319.28
5.4.200.0070.05716.93
5.4.190.0130.06019.16
5.4.180.0070.06318.99
5.4.170.0200.05318.93
5.4.160.0100.05719.13
5.4.150.0200.04719.04
5.4.140.0230.05716.19
5.4.130.0130.05316.41
5.4.120.0130.04716.13
5.4.110.0130.05016.41
5.4.100.0270.03716.34
5.4.90.0100.05316.53
5.4.80.0100.05316.16
5.4.70.0170.05016.51
5.4.60.0100.05016.31
5.4.50.0170.04316.34
5.4.40.0130.05016.35
5.4.30.0030.05716.33
5.4.20.0200.04316.55
5.4.10.0200.04316.18
5.4.00.0300.04715.67
5.3.290.0100.05314.55
5.3.280.0030.05714.50
5.3.270.0100.05714.53
5.3.260.0100.05314.49
5.3.250.0070.05314.61
5.3.240.0130.05014.43
5.3.230.0070.05714.44
5.3.220.0170.05014.40
5.3.210.0170.05014.38
5.3.200.0100.05314.45
5.3.190.0130.04714.49
5.3.180.0170.05314.40
5.3.170.0030.07714.56
5.3.160.0270.06014.39
5.3.150.0100.07714.39
5.3.140.0100.05014.37
5.3.130.0070.06314.33
5.3.120.0070.06714.43
5.3.110.0170.05014.57
5.3.100.0130.05713.94
5.3.90.0230.06313.91
5.3.80.0100.05313.86
5.3.70.0100.05313.96
5.3.60.0230.05013.87
5.3.50.0070.07013.77
5.3.40.0230.05313.73
5.3.30.0130.06713.78
5.3.20.0200.05713.55
5.3.10.0170.04713.54
5.3.00.0130.07013.49
5.2.170.0130.04311.05
5.2.160.0070.04311.22
5.2.150.0100.04011.24
5.2.140.0130.04311.07
5.2.130.0070.04710.93
5.2.120.0170.03010.89
5.2.110.0070.04011.01
5.2.100.0100.03711.05
5.2.90.0130.03710.89
5.2.80.0200.03311.01
5.2.70.0130.04310.92
5.2.60.0070.05311.13
5.2.50.0130.03710.86
5.2.40.0070.04311.03
5.2.30.0100.03711.05
5.2.20.0030.04710.94
5.2.10.0000.05710.75
5.2.00.0030.04710.58
5.1.60.0100.0439.82
5.1.50.0070.0439.91
5.1.40.0170.0379.89
5.1.30.0030.05010.36
5.1.20.0100.03710.29
5.1.10.0030.04310.05
5.1.00.0030.0409.90
5.0.50.0000.0338.62
5.0.40.0100.0208.33
5.0.30.0030.0438.25
5.0.20.0100.0238.10
5.0.10.0100.0338.00
5.0.00.0070.0408.07
4.4.90.0070.0206.92
4.4.80.0030.0306.92
4.4.70.0100.0206.92
4.4.60.0000.0276.92
4.4.50.0070.0206.92
4.4.40.0000.0376.92
4.4.30.0170.0176.92
4.4.20.0130.0136.92
4.4.10.0030.0236.92
4.4.00.0030.0406.92
4.3.110.0030.0306.92
4.3.100.0070.0236.92
4.3.90.0070.0236.92
4.3.80.0000.0436.92
4.3.70.0030.0276.92
4.3.60.0070.0206.92
4.3.50.0030.0236.92
4.3.40.0000.0376.92
4.3.30.0100.0136.92
4.3.20.0000.0236.92
4.3.10.0030.0206.92
4.3.00.0070.0237.33

preferences:
38.11 ms | 455 KiB | 5 Q