3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $a; } class B extends A { public $b; } $a = new B(); $a->a = 0; $a->b = 1; $b = new B(); $b->a = 1; $b->b = 0; var_dump($a < $b); (array)$a; var_dump($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.0090.00918.55
8.3.50.0170.00716.73
8.3.40.0120.00318.57
8.3.30.0110.00418.89
8.3.20.0050.00318.63
8.3.10.0040.00423.43
8.3.00.0020.00521.60
8.2.180.0070.00725.92
8.2.170.0040.01222.96
8.2.160.0140.00019.32
8.2.150.0070.00024.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0060.00318.04
8.2.110.0040.00719.17
8.2.100.0060.00617.58
8.2.90.0080.00017.97
8.2.80.0050.00517.97
8.2.70.0050.00317.93
8.2.60.0030.00518.09
8.2.50.0030.00618.10
8.2.40.0000.00821.07
8.2.30.0040.00420.62
8.2.20.0040.00418.09
8.2.10.0040.00418.05
8.2.00.0060.00319.34
8.1.280.0100.01025.92
8.1.270.0050.00320.24
8.1.260.0040.00426.35
8.1.250.0000.00928.09
8.1.240.0030.00623.97
8.1.230.0090.00322.72
8.1.220.0000.00917.74
8.1.210.0000.00818.82
8.1.200.0030.00617.23
8.1.190.0030.00617.13
8.1.180.0080.00018.10
8.1.170.0030.00518.59
8.1.160.0030.00618.93
8.1.150.0050.00218.80
8.1.140.0000.00818.79
8.1.130.0000.00717.53
8.1.120.0000.00717.35
8.1.110.0000.00817.46
8.1.100.0040.00417.43
8.1.90.0040.00717.38
8.1.80.0050.00317.46
8.1.70.0040.00417.43
8.1.60.0030.00617.48
8.1.50.0060.00317.54
8.1.40.0040.00717.41
8.1.30.0000.00817.48
8.1.20.0050.00217.69
8.1.10.0040.00417.64
8.1.00.0040.00417.52
8.0.300.0040.00420.03
8.0.290.0000.00816.63
8.0.280.0000.00718.38
8.0.270.0050.00317.16
8.0.260.0040.00416.75
8.0.250.0000.00716.89
8.0.240.0000.00716.82
8.0.230.0000.00617.01
8.0.220.0040.00416.82
8.0.210.0070.00316.77
8.0.200.0030.00316.84
8.0.190.0040.00416.92
8.0.180.0040.00416.96
8.0.170.0030.00616.95
8.0.160.0040.00416.97
8.0.150.0040.00416.88
8.0.140.0030.00316.74
8.0.130.0000.00513.32
8.0.120.0040.00416.80
8.0.110.0040.00416.88
8.0.100.0030.00316.77
8.0.90.0040.00416.84
8.0.80.0080.01116.91
8.0.70.0000.00816.77
8.0.60.0070.00016.69
8.0.50.0030.00516.73
8.0.30.0110.01016.92
8.0.20.0100.01417.40
8.0.10.0000.00817.00
8.0.00.0110.00716.88
7.4.330.0000.00515.55
7.4.320.0030.00316.52
7.4.300.0030.00316.48
7.4.290.0080.00016.48
7.4.280.0070.00016.44
7.4.270.0060.00316.45
7.4.260.0070.00016.50
7.4.250.0030.00316.51
7.4.240.0000.00716.60
7.4.230.0050.00216.51
7.4.220.0080.00016.25
7.4.210.0030.01016.54
7.4.200.0050.00216.70
7.4.160.0100.00616.50
7.4.140.0100.00817.86
7.4.130.0070.01016.39
7.4.120.0090.01016.46
7.4.110.0090.00916.61
7.4.100.0140.00316.32
7.4.90.0070.01116.34
7.4.80.0080.01319.39
7.4.70.0100.00716.59
7.4.60.0150.00316.34
7.4.50.0040.01816.33
7.4.40.0090.01216.59
7.4.00.0140.00414.92
7.3.330.0050.00013.16
7.3.320.0050.00013.25
7.3.310.0000.00716.27
7.3.300.0000.00716.30
7.3.290.0030.00316.16
7.3.280.0070.00716.30
7.3.260.0140.00616.37
7.3.240.0090.00816.42
7.3.230.0100.00716.37
7.3.210.0090.00916.37
7.3.200.0060.01016.43
7.3.190.0030.01416.32
7.3.180.0120.00316.59
7.3.170.0140.00616.29
7.3.160.0100.00616.32
7.2.330.0110.00716.73
7.2.320.0030.01416.40
7.2.310.0030.01416.72
7.2.300.0110.00616.41
7.2.290.0030.01416.55
7.2.100.2830.01014.73
7.2.90.1940.00714.70
7.2.80.1800.00614.52
7.2.70.2170.01014.81
7.2.60.1920.00815.03
7.2.50.1860.00914.85
7.2.40.1920.00714.91
7.2.30.2130.01014.83
7.2.20.2190.00814.65
7.2.10.1660.01114.77
7.2.00.2120.01015.04
7.1.210.1930.00913.83
7.1.200.1840.00813.81
7.1.190.2190.00613.83
7.1.180.2050.00713.65
7.1.170.2210.00613.90
7.1.160.1350.00813.81
7.1.150.1840.00613.74
7.1.140.1930.00513.76
7.1.130.1550.00813.67
7.1.120.1730.00713.67
7.1.110.1540.00813.79
7.1.100.1230.00613.76
7.1.90.2220.00313.90
7.1.80.1790.00913.71
7.1.70.1160.00613.79
7.1.60.1440.01231.70
7.1.50.1230.01231.88
7.1.40.1300.01531.86
7.1.30.1320.01131.88
7.1.20.1050.01231.84
7.1.10.1570.00613.71
7.1.00.0810.01013.78
7.0.310.1970.00513.47
7.0.300.1920.00913.50
7.0.290.1790.00713.45
7.0.280.2030.00813.38
7.0.270.1810.00513.53
7.0.260.1630.00413.55
7.0.250.1680.00913.69
7.0.240.1750.00613.61
7.0.230.1580.00513.62
7.0.220.1720.00913.53
7.0.210.1450.00413.48
7.0.200.1790.00713.51
7.0.190.1110.00713.54
7.0.180.1330.00513.56
7.0.170.1170.00813.54
7.0.160.0860.01013.52
7.0.150.0810.01113.55
7.0.140.0970.00813.64
7.0.130.0890.00613.59
7.0.120.1000.01113.60
7.0.110.0870.00813.68
7.0.100.1410.00813.54
7.0.90.0710.01113.58
7.0.80.0840.00713.51
7.0.70.0830.00813.54
7.0.60.0770.01113.58
7.0.50.0740.00813.61
7.0.40.0720.00513.66
7.0.30.0690.00613.51
7.0.20.0750.01013.62
7.0.10.0720.00813.77
7.0.00.0770.00513.60
5.6.300.0100.00714.31
5.6.290.0130.01014.22
5.6.280.0140.00714.45
5.6.270.0090.01014.26
5.6.260.0130.00914.15
5.6.250.0140.00814.16
5.6.240.0170.00514.33
5.6.230.0110.01314.40
5.6.220.0180.00414.38
5.6.210.0090.01314.29
5.6.200.0180.00314.33
5.6.190.0140.00614.46
5.6.180.0110.01014.42
5.6.170.0150.00514.36
5.6.160.0080.01314.29
5.6.150.0120.00914.35
5.6.140.0160.00414.42
5.6.130.0150.00514.33
5.6.120.0160.00814.44
5.6.110.0100.01114.25
5.6.100.0150.00514.28
5.6.90.0140.00514.32
5.6.80.0110.00714.19
5.6.70.0150.00514.32
5.6.60.0140.00614.20
5.6.50.0080.01214.07
5.6.40.0130.00814.21
5.6.30.0050.01214.12
5.6.20.0120.00714.18
5.6.10.0090.01214.15
5.6.00.0160.00414.24
5.5.380.0140.00311.09
5.5.370.0110.00311.14
5.5.360.0080.00711.27
5.5.350.0110.00311.15
5.5.340.0100.00611.18
5.5.330.0100.00411.17
5.5.320.0100.00411.16
5.5.310.0080.00811.22
5.5.300.0090.00711.29
5.5.290.0130.00411.18
5.5.280.0080.00611.22
5.5.270.0080.00711.32
5.5.260.0090.00611.18
5.5.250.0110.00411.13
5.5.240.0070.01111.06
5.5.230.0100.00611.12
5.5.220.0120.00511.18
5.5.210.0110.00311.11
5.5.200.0090.00611.18
5.5.190.0080.00511.00
5.5.180.0100.00511.04
5.5.170.0150.00714.16
5.5.160.0090.00611.09
5.5.150.0080.00810.96
5.5.140.0110.00311.01
5.5.130.0120.00211.17
5.5.120.0080.00411.01
5.5.110.0090.00711.06
5.5.100.0100.00311.04
5.5.90.0100.00311.05
5.5.80.0110.00311.14
5.5.70.0080.00611.28
5.5.60.0060.01011.14
5.5.50.0100.00511.05
5.5.40.0110.00411.07
5.5.30.0090.00410.94
5.5.20.0100.00411.18
5.5.10.0080.00611.12
5.5.00.0110.00611.03
5.4.450.0090.00610.95
5.4.440.0100.00511.12
5.4.430.0090.00610.99
5.4.420.0070.00710.97
5.4.410.0130.00111.10
5.4.400.0060.00911.00
5.4.390.0080.00611.06
5.4.380.0100.00511.06
5.4.370.0090.00510.98
5.4.360.0110.00410.96
5.4.350.0070.00711.01
5.4.340.0080.00810.87
5.4.330.0110.00310.91
5.4.320.0130.00211.09
5.4.310.0120.00410.98
5.4.300.0090.00511.12
5.4.290.0090.00611.05
5.4.280.0060.00910.97
5.4.270.0070.00910.95
5.4.260.0110.00410.90
5.4.250.0090.00410.98
5.4.240.0090.00511.08
5.4.230.0140.00611.05
5.4.220.0090.00610.87
5.4.210.0090.00510.86
5.4.200.0070.00610.98
5.4.190.0120.00310.88
5.4.180.0100.00410.98
5.4.170.0120.00210.97
5.4.160.0110.00411.04
5.4.150.0090.00711.03
5.4.140.0050.00911.09
5.4.130.0110.00411.01
5.4.120.0080.00610.96
5.4.110.0090.00610.92
5.4.100.0090.00310.89
5.4.90.0090.00511.00
5.4.80.0090.00710.84
5.4.70.0100.00411.02
5.4.60.0090.00411.09
5.4.50.0080.00510.96
5.4.40.0090.00511.01
5.4.30.0090.00611.00
5.4.20.0110.00211.11
5.4.10.0080.00710.99
5.4.00.0070.00711.11
5.3.290.0110.00410.76
5.3.280.0060.00810.53
5.3.270.0110.00310.44
5.3.260.0090.00610.53
5.3.250.0100.00410.59
5.3.240.0070.00510.36
5.3.230.0120.00310.58
5.3.220.0080.00410.40
5.3.210.0110.00210.30
5.3.200.0120.00210.22
5.3.190.0090.00510.37
5.3.180.0090.00410.52
5.3.170.0080.00410.49
5.3.160.0060.00710.50
5.3.150.0110.00210.51
5.3.140.0120.00210.38
5.3.130.0080.00510.43
5.3.120.0070.00610.46
5.3.110.0060.00510.46
5.3.100.0060.00610.41
5.3.90.0060.00810.44
5.3.80.0070.00710.43
5.3.70.0100.00310.40
5.3.60.0090.00710.46
5.3.50.0110.00310.39
5.3.40.0080.00510.34
5.3.30.0060.00810.38
5.3.20.0090.00510.33
5.3.10.0090.00410.31
5.3.00.0080.00710.31
5.2.170.0080.0049.83
5.2.160.0080.0059.77
5.2.150.0090.0029.87
5.2.140.0080.0039.75
5.2.130.0080.0039.75
5.2.120.0050.0079.74
5.2.110.0060.0049.83
5.2.100.0080.0029.84
5.2.90.0060.0049.76
5.2.80.0060.0049.62
5.2.70.0080.0039.69
5.2.60.0040.0069.72
5.2.50.0070.0049.70
5.2.40.0070.0049.58
5.2.30.0050.0069.69
5.2.20.0090.0029.58
5.2.10.0060.0069.63
5.2.00.0030.0079.48
5.1.60.0060.0049.24
5.1.50.0060.0039.24
5.1.40.0040.0069.27
5.1.30.0070.0039.28
5.1.20.0100.0009.24
5.1.10.0040.0049.24
5.1.00.0080.0029.24
5.0.50.0060.0029.24
5.0.40.0090.0009.24
5.0.30.0050.0039.24
5.0.20.0070.0039.24
5.0.10.0060.0029.24
5.0.00.0070.0019.24
4.4.90.0050.0019.24
4.4.80.0040.0039.24
4.4.70.0040.0039.24
4.4.60.0040.0039.24
4.4.50.0060.0019.24
4.4.40.0060.0019.24
4.4.30.0040.0049.24
4.4.20.0030.0059.24
4.4.10.0010.0079.24
4.4.00.0030.0039.24
4.3.110.0050.0029.24
4.3.100.0030.0049.24
4.3.90.0050.0029.24
4.3.80.0020.0059.24
4.3.70.0040.0029.24
4.3.60.0050.0019.24
4.3.50.0030.0049.24
4.3.40.0030.0049.24
4.3.30.0020.0049.24
4.3.20.0000.0069.24
4.3.10.0050.0019.24
4.3.00.0020.0049.24

preferences:
68.42 ms | 400 KiB | 5 Q