3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $x; } class Bar { public $y; } $a = new Foo(); $b = new Foo(); $a->x = new Bar(); $a->x->y = 2; $b->x = new Bar(); $b->x->y = 3; print_r($a != $b); ?>

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.60.0070.01418.31
8.3.50.0070.01021.99
8.3.40.0100.00318.67
8.3.30.0070.00718.97
8.3.20.0040.00420.37
8.3.10.0040.00422.11
8.3.00.0000.00720.57
8.2.180.0090.00616.63
8.2.170.0070.00722.96
8.2.160.0000.01318.98
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0120.00626.16
8.2.120.0040.00419.36
8.2.110.0070.00422.13
8.2.100.0030.00917.78
8.2.90.0040.00419.21
8.2.80.0040.00417.97
8.2.70.0000.00817.50
8.2.60.0000.00818.04
8.2.50.0040.00418.07
8.2.40.0030.00519.94
8.2.30.0040.00418.06
8.2.20.0070.00017.52
8.2.10.0030.00517.68
8.2.00.0060.00317.59
8.1.280.0030.01025.92
8.1.270.0040.00422.14
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00622.20
8.1.230.0120.00017.45
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0060.00317.10
8.1.190.0040.00417.39
8.1.180.0040.00418.73
8.1.170.0040.00418.57
8.1.160.0040.00422.13
8.1.150.0000.00718.69
8.1.140.0030.00617.35
8.1.130.0030.00317.77
8.1.120.0040.00417.50
8.1.110.0040.00717.50
8.1.100.0030.00517.37
8.1.90.0080.00017.52
8.1.80.0000.00717.36
8.1.70.0030.00317.42
8.1.60.0050.00317.48
8.1.50.0040.00417.42
8.1.40.0040.00417.48
8.1.30.0000.00817.54
8.1.20.0030.00517.68
8.1.10.0000.00717.50
8.1.00.0070.00017.32
8.0.300.0040.00418.77
8.0.290.0030.00516.62
8.0.280.0040.00418.45
8.0.270.0050.00217.12
8.0.260.0000.00716.75
8.0.250.0000.00717.02
8.0.240.0000.00716.84
8.0.230.0000.00716.99
8.0.220.0040.00416.91
8.0.210.0030.00316.82
8.0.200.0000.00716.96
8.0.190.0000.01016.88
8.0.180.0050.00316.91
8.0.170.0080.00016.87
8.0.160.0040.00416.75
8.0.150.0030.00516.75
8.0.140.0070.00016.74
8.0.130.0070.00013.36
8.0.120.0040.00416.79
8.0.110.0030.00516.80
8.0.100.0000.00716.94
8.0.90.0030.00516.89
8.0.80.0110.00616.87
8.0.70.0040.00416.89
8.0.60.0060.00316.79
8.0.50.0040.00416.72
8.0.30.0140.01217.16
8.0.20.0090.01217.40
8.0.10.0040.00417.05
8.0.00.0160.00516.74
7.4.330.0020.00215.03
7.4.320.0060.00016.47
7.4.300.0060.00316.61
7.4.290.0060.00316.50
7.4.280.0000.00716.61
7.4.270.0070.00016.58
7.4.260.0000.00816.57
7.4.250.0000.00816.55
7.4.240.0030.00416.52
7.4.230.0070.00016.67
7.4.220.0090.01516.53
7.4.210.0080.00716.53
7.4.200.0000.00716.67
7.4.190.0000.00716.68
7.4.160.0100.00716.58
7.4.150.0160.00317.40
7.4.140.0050.01317.86
7.4.130.0100.01116.59
7.4.120.0080.00916.33
7.4.110.0060.01516.41
7.4.100.0120.00916.31
7.4.90.0090.00916.52
7.4.80.0110.00719.39
7.4.70.0150.00316.41
7.4.60.0080.00716.22
7.4.50.0040.00416.48
7.4.40.0070.01122.77
7.4.30.0060.01216.45
7.4.00.0080.00915.00
7.3.330.0000.00513.29
7.3.320.0000.00613.29
7.3.310.0000.00716.38
7.3.300.0000.00616.29
7.3.290.0060.00916.22
7.3.280.0100.00616.30
7.3.270.0140.00617.40
7.3.260.0140.01216.39
7.3.250.0130.01016.26
7.3.240.0120.00616.44
7.3.230.0120.00916.39
7.3.210.0040.01316.52
7.3.200.0120.00919.39
7.3.190.0080.00816.55
7.3.180.0090.00616.52
7.3.170.0090.00616.32
7.3.160.0080.01116.59
7.3.120.0050.01214.81
7.3.110.0000.01914.68
7.3.100.0040.01114.81
7.3.90.0100.00614.65
7.3.80.0050.00514.79
7.3.70.0060.00614.47
7.3.60.0030.01214.70
7.3.50.0120.00314.79
7.3.40.0090.00314.57
7.3.30.0030.01014.85
7.3.20.0120.00316.64
7.3.10.0030.00916.42
7.3.00.0040.01116.48
7.2.330.0100.00716.52
7.2.320.0160.00316.55
7.2.310.0120.01216.69
7.2.300.0050.01116.54
7.2.290.0120.00616.61
7.2.250.0090.00614.70
7.2.240.0060.01315.13
7.2.230.0120.00615.25
7.2.220.0110.00615.00
7.2.210.0090.00615.09
7.2.200.0120.00314.82
7.2.190.0060.00914.96
7.2.180.0060.00914.89
7.2.170.0030.00914.98
7.1.330.0030.01015.65
7.1.320.0060.00615.49
7.1.310.0000.01415.97
7.1.300.0100.00715.54
7.1.290.0030.00615.82
7.1.280.0100.00315.83
7.1.270.0080.00815.69
7.1.260.0060.00915.61
7.1.70.0030.00717.25
7.1.60.0070.01719.82
7.1.50.0060.01316.90
7.1.00.0030.07722.36
7.0.200.0080.01116.71
7.0.140.0070.07022.08
7.0.60.0070.08020.03
7.0.50.0030.06017.82
7.0.40.0100.06020.09
7.0.30.0570.07320.23
7.0.20.0200.04020.20
7.0.10.0230.08320.30
7.0.00.0070.07020.23
5.6.280.0000.07721.09
5.6.210.0070.06020.50
5.6.200.0030.05018.29
5.6.190.0000.04720.48
5.6.180.0330.07720.30
5.6.170.0270.05320.47
5.6.160.0270.04720.71
5.6.150.0030.07018.16
5.6.140.0100.03318.19
5.6.130.0070.05318.21
5.6.120.0130.07721.02
5.6.110.0100.08020.98
5.6.100.0070.04320.96
5.6.90.0100.07321.00
5.6.80.0100.08020.43
5.6.70.0370.06320.50
5.5.350.0200.07720.50
5.5.340.0070.08017.99
5.5.330.0030.07320.21
5.5.320.0230.08020.41
5.5.310.0230.08320.41
5.5.300.0030.04017.92
5.5.290.0100.08717.95
5.5.280.0070.03720.77
5.5.270.0100.04320.86
5.5.260.0230.07720.88
5.5.250.0070.08320.77
5.5.240.0070.04720.15
5.4.450.0670.06719.63
5.4.440.0670.06319.59
5.4.430.0530.07019.57
5.4.420.0800.04319.22
5.4.410.0070.06318.91
5.4.400.1100.00018.79
5.4.390.0970.00018.76
5.4.380.0300.05718.79
5.4.370.0370.04318.84
5.4.360.0270.05718.80
5.4.350.0230.05718.79
5.4.340.0430.04318.75
5.4.320.0060.03612.50
5.4.310.0070.03712.49
5.4.300.0070.03612.49
5.4.290.0070.03612.50
5.4.280.0060.03612.39
5.4.270.0040.03812.39
5.4.260.0070.04012.39
5.4.250.0100.03312.39
5.4.240.0090.03312.39
5.4.230.0090.03412.39
5.4.220.0080.03412.39
5.4.210.0020.04012.38
5.4.200.0040.04012.38
5.4.190.0090.04312.38
5.4.180.0060.03612.38
5.4.170.0130.07018.98
5.4.160.0070.05719.00
5.4.150.0070.05318.82
5.4.140.0000.08016.60
5.4.130.0030.05716.41
5.4.120.0130.04716.45
5.4.110.0130.04316.56
5.4.100.0130.06716.57
5.4.90.0130.05016.68
5.4.80.0100.04716.58
5.4.70.0030.05716.66
5.4.60.0030.05316.46
5.4.50.0070.06016.44
5.4.40.0030.06316.50
5.4.30.0070.04716.38
5.4.20.0170.03716.48
5.4.10.0130.05316.38
5.4.00.0070.07015.83
5.3.290.0070.04112.80
5.3.280.0110.03912.71
5.3.270.0070.07014.62
5.3.260.0100.05314.57
5.3.250.0070.05014.69
5.3.240.0070.05314.61
5.3.230.0100.06014.81
5.3.220.0070.05714.65
5.3.210.0000.06014.70
5.3.200.0230.05714.40
5.3.190.0100.05014.74
5.3.180.0070.05014.58
5.3.170.0070.05314.54
5.3.160.0170.06314.64
5.3.150.0070.05014.62
5.3.140.0100.07014.71
5.3.130.0070.07714.45
5.3.120.0030.05714.38
5.3.110.0070.06014.68
5.3.100.0070.05014.13
5.3.90.0070.05014.04
5.3.80.0070.05014.03
5.3.70.0070.07014.23
5.3.60.0100.04314.07
5.3.50.0000.06014.16
5.3.40.0030.05314.02
5.3.30.0130.06313.98
5.3.20.0130.04313.69
5.3.10.0100.04313.80
5.3.00.0130.06013.71
5.2.170.0030.04311.22
5.2.160.0030.05011.30
5.2.150.0030.04311.12
5.2.140.0000.04711.23
5.2.130.0100.04011.18
5.2.120.0030.04011.17
5.2.110.0100.03311.09
5.2.100.0100.04011.27
5.2.90.0000.05311.12
5.2.80.0100.03711.25
5.2.70.0100.05711.15
5.2.60.0070.05311.12
5.2.50.0070.05011.00
5.2.40.0030.04011.05
5.2.30.0070.05711.05
5.2.20.0070.04711.03
5.2.10.0030.04010.84
5.2.00.0070.04010.88
5.1.60.0100.0309.95
5.1.50.0030.03310.00
5.1.40.0070.03010.04
5.1.30.0030.04310.30
5.1.20.0030.03710.42
5.1.10.0100.03010.15
5.1.00.0030.05010.16
5.0.50.0130.0338.54
5.0.40.0070.0238.56
5.0.30.0070.0378.20
5.0.20.0030.0278.11
5.0.10.0030.0278.21
5.0.00.0070.0408.14
4.4.90.0000.0235.97
4.4.80.0030.0205.85
4.4.70.0030.0205.83
4.4.60.0070.0175.84
4.4.50.0030.0205.86
4.4.40.0070.0305.86
4.4.30.0100.0135.89
4.4.20.0070.0175.92
4.4.10.0030.0205.87
4.4.00.0000.0405.93
4.3.110.0030.0235.84
4.3.100.0070.0175.75
4.3.90.0030.0175.66
4.3.80.0000.0475.74
4.3.70.0030.0175.77
4.3.60.0000.0205.73
4.3.50.0000.0275.73
4.3.40.0000.0335.84
4.3.30.0100.0135.27
4.3.20.0030.0205.27
4.3.10.0000.0235.27
4.3.00.0100.0376.78

preferences:
48.64 ms | 401 KiB | 5 Q