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.0120.00316.63
8.3.50.0070.01022.00
8.3.40.0080.00618.70
8.3.30.0140.00018.97
8.3.20.0000.00820.21
8.3.10.0030.00523.61
8.3.00.0070.00020.41
8.2.180.0090.00916.50
8.2.170.0120.00322.96
8.2.160.0040.00922.25
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0080.00022.25
8.2.110.0030.00619.38
8.2.100.0000.01117.91
8.2.90.0050.00319.82
8.2.80.0040.00419.41
8.2.70.0080.00017.93
8.2.60.0060.00318.04
8.2.50.0060.00318.10
8.2.40.0070.00019.34
8.2.30.0000.00717.96
8.2.20.0040.00417.67
8.2.10.0070.00317.66
8.2.00.0030.00617.73
8.1.280.0060.00925.92
8.1.270.0090.00023.82
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0040.00422.41
8.1.230.0050.00520.96
8.1.220.0030.00517.74
8.1.210.0030.00518.77
8.1.200.0030.00617.35
8.1.190.0000.00817.23
8.1.180.0030.00518.10
8.1.170.0030.00518.61
8.1.160.0070.00022.00
8.1.150.0000.00718.67
8.1.140.0030.00517.44
8.1.130.0000.00817.74
8.1.120.0000.00717.44
8.1.110.0050.00217.44
8.1.100.0040.00417.45
8.1.90.0040.00417.33
8.1.80.0000.00717.35
8.1.70.0000.00717.32
8.1.60.0040.00417.57
8.1.50.0040.00417.50
8.1.40.0000.00817.55
8.1.30.0050.00317.65
8.1.20.0000.00917.61
8.1.10.0060.00317.47
8.1.00.0080.00017.32
8.0.300.0070.00019.90
8.0.290.0030.00516.63
8.0.280.0050.00318.52
8.0.270.0070.00017.16
8.0.260.0030.00316.71
8.0.250.0000.00716.96
8.0.240.0060.00316.95
8.0.230.0030.00316.88
8.0.220.0000.00716.87
8.0.210.0000.00716.89
8.0.200.0000.00616.98
8.0.190.0040.00416.95
8.0.180.0030.00416.89
8.0.170.0040.00416.80
8.0.160.0040.00416.92
8.0.150.0030.00516.91
8.0.140.0040.00416.79
8.0.130.0000.00513.24
8.0.120.0000.00716.89
8.0.110.0030.00516.86
8.0.100.0000.00716.76
8.0.90.0030.00516.78
8.0.80.0080.00616.82
8.0.70.0030.00616.71
8.0.60.0000.00716.76
8.0.50.0070.00016.94
8.0.30.0160.00516.89
8.0.20.0100.00917.40
8.0.10.0040.00417.00
8.0.00.0140.00316.76
7.4.330.0000.00615.17
7.4.320.0030.00316.59
7.4.300.0060.00016.41
7.4.290.0040.00416.56
7.4.280.0040.00416.63
7.4.270.0070.00016.47
7.4.260.0000.00716.46
7.4.250.0000.00716.57
7.4.240.0040.00316.55
7.4.230.0050.00216.43
7.4.220.0140.00416.62
7.4.210.0030.01316.59
7.4.200.0070.00016.70
7.4.190.0000.00716.68
7.4.160.0110.00416.60
7.4.150.0150.00317.40
7.4.140.0110.00817.86
7.4.130.0070.00916.49
7.4.120.0100.00816.51
7.4.110.0170.00716.43
7.4.100.0110.00816.56
7.4.90.0140.00316.49
7.4.80.0040.01216.56
7.4.70.0060.01216.58
7.4.60.0060.01016.38
7.4.50.0060.00316.58
7.4.40.0090.00622.77
7.4.30.0110.00616.68
7.4.00.0090.00814.98
7.3.330.0050.00013.16
7.3.320.0000.00613.05
7.3.310.0030.00316.14
7.3.300.0030.00316.29
7.3.290.0140.00616.37
7.3.280.0110.00616.31
7.3.270.0080.01517.40
7.3.260.0030.01416.57
7.3.250.0080.00816.27
7.3.240.0110.00516.44
7.3.230.0150.00716.57
7.3.210.0080.01216.57
7.3.200.0030.01919.39
7.3.190.0070.01016.61
7.3.180.0060.00916.34
7.3.170.0030.01316.35
7.3.160.0120.00316.31
7.3.120.0030.01314.83
7.3.110.0060.00914.45
7.3.100.0070.00714.89
7.3.90.0040.01114.29
7.3.80.0000.01215.02
7.3.70.0030.00914.26
7.3.60.0080.00414.69
7.3.50.0030.00714.49
7.3.40.0040.01114.75
7.3.30.0070.00714.43
7.3.20.0120.00316.70
7.3.10.0060.00916.70
7.3.00.0000.01316.82
7.2.330.0030.01316.64
7.2.320.0070.01016.58
7.2.310.0060.01016.64
7.2.300.0030.01316.51
7.2.290.0030.01316.60
7.2.250.0110.00715.20
7.2.240.0110.00714.77
7.2.230.0090.00614.89
7.2.220.0040.01514.70
7.2.210.0000.01314.92
7.2.200.0090.00314.94
7.2.190.0040.01114.91
7.2.180.0000.01514.86
7.2.170.0000.01615.09
7.1.330.0030.01315.85
7.1.320.0030.01015.40
7.1.310.0060.00315.98
7.1.300.0030.00615.63
7.1.290.0030.00515.42
7.1.280.0030.01315.70
7.1.270.0070.00715.68
7.1.260.0000.01615.66
7.1.70.0080.00016.89
7.1.60.0110.01419.27
7.1.50.0040.00716.78
7.1.00.0070.07322.40
7.0.200.0090.00616.68
7.0.140.0100.06721.97
7.0.60.0070.03720.07
7.0.50.0030.08317.84
7.0.40.0030.08720.14
7.0.30.0370.07320.35
7.0.20.0170.04020.13
7.0.10.0200.04320.19
7.0.00.0030.06320.30
5.6.280.0070.07021.10
5.6.210.0200.02720.53
5.6.200.0070.07318.22
5.6.190.0100.06020.57
5.6.180.0000.08720.77
5.6.170.0270.07720.55
5.6.160.0100.03720.50
5.6.150.0030.05018.19
5.6.140.0030.05718.15
5.6.130.0070.04718.18
5.6.120.0200.07320.89
5.6.110.0130.07721.11
5.6.100.0070.06720.97
5.6.90.0100.08720.98
5.6.80.0100.06320.38
5.6.70.4470.03320.41
5.5.350.0000.03320.53
5.5.340.0070.08317.99
5.5.330.0100.04720.41
5.5.320.0100.07720.27
5.5.310.0330.05020.28
5.5.300.0070.04718.06
5.5.290.0030.04317.98
5.5.280.0100.04320.88
5.5.270.0100.08320.87
5.5.260.0070.06320.79
5.5.250.0030.06720.68
5.5.240.0070.07320.25
5.4.450.0630.05319.55
5.4.440.0930.07719.22
5.4.430.0970.05019.57
5.4.420.0770.05319.36
5.4.410.0730.06019.21
5.4.400.0200.06318.87
5.4.390.0500.05718.61
5.4.380.0070.06018.55
5.4.370.0070.06318.64
5.4.360.0100.05318.73
5.4.350.0230.04718.57
5.4.340.0170.05718.71
5.4.320.0070.04012.49
5.4.310.0090.04612.49
5.4.300.0100.04212.49
5.4.290.0070.04412.49
5.4.280.0080.04212.39
5.4.270.0060.03712.39
5.4.260.0060.04312.39
5.4.250.0060.04312.39
5.4.240.0060.05112.39
5.4.230.0060.04812.38
5.4.220.0060.04012.38
5.4.210.0080.03812.38
5.4.200.0050.03812.38
5.4.190.0070.04312.38
5.4.180.0060.04612.38
5.4.170.0180.04212.38
5.4.160.0180.04212.37
5.4.150.0200.04512.36
5.4.140.0450.07812.04
5.4.130.0180.04112.04
5.4.120.0110.04611.99
5.4.110.0190.03811.98
5.4.100.0120.04611.99
5.4.90.0160.04211.99
5.4.80.0170.04211.99
5.4.70.0200.06711.98
5.4.60.0160.04311.98
5.4.50.0140.04311.98
5.4.40.0160.04011.97
5.4.30.0180.04311.97
5.4.20.0210.03611.97
5.4.10.0130.04511.97
5.4.00.0160.04411.46
5.3.290.0060.04212.80
5.3.280.0060.03712.71
5.3.270.0200.04412.72
5.3.260.0170.04512.72
5.3.250.0170.04312.72
5.3.240.0160.04412.72
5.3.230.0160.04612.71
5.3.220.0230.06712.68
5.3.210.0140.04812.68
5.3.200.0180.04412.68
5.3.190.0160.04712.67
5.3.180.0170.04412.67
5.3.170.0220.03912.67
5.3.160.0220.04412.68
5.3.150.0150.04612.67
5.3.140.0190.04212.66
5.3.130.0160.04612.66
5.3.120.0200.07112.66
5.3.110.0150.04512.66
5.3.100.0150.04512.12
5.3.90.0150.04312.09
5.3.80.0200.04012.08
5.3.70.0130.04712.08
5.3.60.0170.04512.06
5.3.50.0150.04412.01
5.3.40.0150.04412.02
5.3.30.0170.04011.97
5.3.20.0170.04111.75
5.3.10.0180.03811.71
5.3.00.0460.07211.70
5.2.170.0150.0329.21
5.2.160.0200.0409.21
5.2.150.0180.0319.21
5.2.140.0120.0379.21
5.2.130.0120.0359.17
5.2.120.0130.0339.16
5.2.110.0110.0369.17
5.2.100.0110.0359.16
5.2.90.0100.0369.16
5.2.80.0120.0349.15
5.2.70.0110.0369.15
5.2.60.0150.0329.12
5.2.50.0200.0579.09
5.2.40.0070.0409.06
5.2.30.0110.0359.03
5.2.20.0100.0399.03
5.2.10.0280.0788.93
5.2.00.0120.0338.78
5.1.60.0110.0298.07
5.1.50.0120.0298.07
5.1.40.0080.0318.05
5.1.30.0130.0298.41
5.1.20.0130.0308.44
5.1.10.0110.0318.16
5.1.00.0110.0318.15
5.0.50.0220.0416.63
5.0.40.0110.0216.49
5.0.30.0070.0376.30
5.0.20.0070.0256.27
5.0.10.0110.0206.25
5.0.00.0090.0356.24
4.4.90.0050.0204.78
4.4.80.0080.0174.75
4.4.70.0080.0174.75
4.4.60.0050.0204.75
4.4.50.0070.0184.77
4.4.40.0070.0284.71
4.4.30.0030.0234.76
4.4.20.0100.0174.84
4.4.10.0070.0184.85
4.4.00.0080.0274.76
4.3.110.0080.0174.67
4.3.100.0080.0164.67
4.3.90.0080.0184.63
4.3.80.0090.0264.58
4.3.70.0090.0154.63
4.3.60.0090.0224.63
4.3.50.0050.0204.63
4.3.40.0060.0284.54
4.3.30.0050.0183.31
4.3.20.0040.0193.30
4.3.10.0070.0163.26
4.3.00.0070.01713.17

preferences:
51.13 ms | 401 KiB | 5 Q