3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * Which one is greatest? */ error_reporting(E_ALL ^ E_NOTICE); $inf = INF; $array = array(); $object = (object) $array; $InfGreaterThanArray = ($inf > $array); $InfGreaterThanObject = ($inf > $object); $arrayGreaterThanInf = ($array > $inf); $arrayGreaterThanObject = ($array > $object); $objectGreaterThanInf = ($object > $inf); $objectGreaterThanArray = ($object > array()); // Test1: Is INF greatest? echo 'Inf is Greatest...: ', var_dump($InfIsGreatest = $InfGreaterThanObject and $InfGreaterThanArray); // Test2: Is Array greatest? echo 'Array is Greatest.: ', var_dump($arrayIsGreatest = $arrayGreaterThanInf and $arrayGreaterThanObject); // Test3: Is Object greatest? echo 'Object is Greatest: ', var_dump($objectIsGreatest = $objectGreaterThanInf and $objectGreaterThanArray); // Test4: Undefined? echo 'Undefined.........: ', var_dump( $undefined = ( ($InfIsGreatest and $InfIsGreatest == $arrayIsGreatest) || ($arrayIsGreatest and $arrayIsGreatest == $objectIsGreatest) || (!$InfIsGreatest and ($InfIsGreatest == $arrayIsGreatest and $InfIsGreatest == $objectIsGreatest)) ) );

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.0120.00618.79
8.3.30.0040.01119.04
8.3.20.0070.00020.34
8.3.10.0070.00023.51
8.3.00.0040.00420.64
8.2.170.0110.00422.96
8.2.160.0110.00322.25
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0090.00026.16
8.2.120.0000.00922.11
8.2.110.0060.00319.33
8.2.100.0040.00817.91
8.2.90.0080.00019.04
8.2.80.0030.00517.97
8.2.70.0050.00317.63
8.2.60.0060.00317.93
8.2.50.0000.00818.07
8.2.40.0040.00418.22
8.2.30.0040.00418.04
8.2.20.0000.00717.71
8.2.10.0000.00817.61
8.2.00.0000.00817.67
8.1.270.0000.00923.91
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00321.43
8.1.230.0050.00517.42
8.1.220.0040.00417.91
8.1.210.0060.00318.77
8.1.200.0050.00517.36
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0040.00418.28
8.1.160.0000.00922.06
8.1.150.0070.00018.66
8.1.140.0000.00717.49
8.1.130.0000.00717.82
8.1.120.0040.00417.36
8.1.110.0050.00217.32
8.1.100.0050.00217.48
8.1.90.0000.00817.43
8.1.80.0030.00317.44
8.1.70.0030.00317.34
8.1.60.0020.00517.48
8.1.50.0040.00417.50
8.1.40.0000.00817.50
8.1.30.0050.00317.60
8.1.20.0000.00717.66
8.1.10.0040.00417.38
8.1.00.0080.00017.44
8.0.300.0030.00618.77
8.0.290.0020.00516.75
8.0.280.0000.00718.48
8.0.270.0070.00017.29
8.0.260.0000.00716.87
8.0.250.0030.00317.00
8.0.240.0000.00716.98
8.0.230.0000.00716.88
8.0.220.0000.00716.91
8.0.210.0030.00316.91
8.0.200.0030.00317.04
8.0.190.0050.00216.90
8.0.180.0020.00516.89
8.0.170.0080.00016.86
8.0.160.0090.00016.90
8.0.150.0040.00416.85
8.0.140.0040.00416.93
8.0.130.0000.00613.33
8.0.120.0080.00016.93
8.0.110.0040.00416.93
8.0.100.0040.00416.96
8.0.90.0040.00416.84
8.0.80.0100.00717.01
8.0.70.0040.00416.94
8.0.60.0070.00017.07
8.0.50.0000.00816.90
8.0.30.0130.00916.99
8.0.20.0070.01017.40
8.0.10.0000.00816.93
8.0.00.0070.01116.85
7.4.330.0050.00015.09
7.4.320.0030.00316.55
7.4.300.0000.00816.58
7.4.290.0000.00816.40
7.4.280.0070.00316.47
7.4.270.0030.00516.49
7.4.260.0050.00013.16
7.4.250.0000.00716.46
7.4.240.0050.00216.43
7.4.230.0030.00316.69
7.4.220.0190.00616.63
7.4.210.0070.00716.57
7.4.200.0000.00716.29
7.4.190.0070.00016.54
7.4.160.0100.00716.32
7.4.150.0080.01217.40
7.4.140.0110.00917.86
7.4.130.0080.00816.53
7.4.120.0110.00616.51
7.4.110.0060.00916.65
7.4.100.0050.01316.38
7.4.90.0090.00916.41
7.4.80.0090.01216.30
7.4.70.0100.01116.48
7.4.60.0060.01116.42
7.4.50.0040.00416.46
7.4.40.0040.01122.77
7.4.30.0080.00816.57
7.4.00.0080.00715.15
7.3.330.0050.00013.23
7.3.320.0000.00613.30
7.3.310.0000.00716.41
7.3.300.0060.00016.36
7.3.290.0100.00716.32
7.3.280.0090.00616.30
7.3.270.0140.00317.40
7.3.260.0070.01016.43
7.3.250.0090.01116.54
7.3.240.0080.00816.33
7.3.230.0070.01016.45
7.3.210.0040.01416.53
7.3.200.0090.01219.39
7.3.190.0090.01216.28
7.3.180.0070.01016.38
7.3.170.0030.01316.56
7.3.160.0070.00716.38
7.3.120.0100.00514.97
7.3.110.0070.00714.65
7.3.100.0030.01414.81
7.3.90.0030.00714.88
7.3.80.0070.00715.02
7.3.70.0030.01214.85
7.3.60.0070.01014.77
7.3.50.0090.00314.66
7.3.40.0070.00714.73
7.3.30.0060.00314.84
7.3.20.0060.00916.67
7.3.10.0090.00616.61
7.3.00.0070.01016.73
7.2.330.0090.00916.57
7.2.320.0100.00716.44
7.2.310.0090.00916.68
7.2.300.0090.00916.39
7.2.290.0090.00616.72
7.2.250.0070.01115.06
7.2.240.0120.00615.16
7.2.230.0030.00914.72
7.2.220.0000.01415.16
7.2.210.0070.01015.20
7.2.200.0060.00914.90
7.2.190.0120.00314.89
7.2.180.0000.01414.70
7.2.170.0080.00814.76
7.2.160.0030.01315.05
7.2.150.0090.00616.82
7.2.140.0000.01516.97
7.2.130.0080.00616.81
7.2.120.0070.01016.96
7.2.110.0100.00316.78
7.2.100.0040.01216.84
7.2.90.0100.00316.56
7.2.80.0120.00316.86
7.2.70.0000.01316.93
7.2.60.0060.00616.91
7.2.50.0030.01216.85
7.2.40.0030.01216.93
7.2.30.0040.01116.93
7.2.20.0000.01316.58
7.2.10.0030.01216.61
7.2.00.0020.01218.00
7.1.330.0060.01215.54
7.1.320.0090.00615.86
7.1.310.0060.01215.71
7.1.300.0000.01315.77
7.1.290.0060.00615.51
7.1.280.0030.00915.91
7.1.270.0140.00015.44
7.1.260.0070.01015.79
7.1.250.0080.00415.68
7.1.240.0000.00915.82
7.1.230.0030.01015.85
7.1.220.0070.00415.78
7.1.210.0040.00815.89
7.1.200.0030.01315.79
7.1.190.0000.01415.95
7.1.180.0060.00615.56
7.1.170.0060.00915.91
7.1.160.0030.00915.96
7.1.150.0000.01015.99
7.1.140.0000.01215.76
7.1.130.0040.01215.89
7.1.120.0090.00615.83
7.1.110.0070.00715.75
7.1.100.0030.00916.92
7.1.90.0120.00315.70
7.1.80.0060.00915.94
7.1.70.0050.01116.30
7.1.60.0090.01017.65
7.1.50.0050.01216.40
7.1.40.0060.00315.83
7.1.30.0060.00315.90
7.1.20.0030.01015.95
7.1.10.0070.00415.86
7.1.00.0050.04819.26
7.0.330.0040.00715.29
7.0.320.0130.00315.42
7.0.310.0000.01015.29
7.0.300.0030.01415.27
7.0.290.0060.00615.43
7.0.280.0080.00315.23
7.0.270.0000.01415.39
7.0.260.0000.01115.33
7.0.250.0080.00015.45
7.0.240.0030.01015.47
7.0.230.0070.00715.60
7.0.220.0030.00815.39
7.0.210.0090.00015.51
7.0.200.0070.00716.16
7.0.190.0060.00615.50
7.0.180.0110.00315.43
7.0.170.0000.01315.40
7.0.160.0040.01115.44
7.0.150.0060.00615.45
7.0.140.0050.04018.62
7.0.130.0060.00315.38
7.0.120.0030.01015.57
7.0.110.0060.00315.49
7.0.100.0130.04017.79
7.0.90.0050.04017.74
7.0.80.0150.04417.60
7.0.70.0090.04217.74
7.0.60.0160.03517.72
7.0.50.0090.04017.81
7.0.40.0050.04516.86
7.0.30.0060.02316.74
7.0.20.0010.03116.75
7.0.10.0120.02716.83
7.0.00.0070.04716.70
5.6.400.0140.00314.49
5.6.390.0070.01114.60
5.6.380.0000.01114.26
5.6.370.0070.00714.56
5.6.360.0080.00414.54
5.6.350.0030.01014.24
5.6.340.0030.01014.12
5.6.330.0030.00714.24
5.6.320.0040.01114.43
5.6.310.0080.00814.09
5.6.300.0000.00914.36
5.6.290.0050.00414.20
5.6.280.0040.03817.81
5.6.270.0000.00914.25
5.6.260.0060.00314.22
5.6.250.0040.03117.56
5.6.240.0140.03517.40
5.6.230.0070.02617.48
5.6.220.0080.04017.35
5.6.210.0100.04317.37
5.6.200.0070.02417.63
5.6.190.0100.04217.64
5.6.180.0120.02317.63
5.6.170.0080.04417.66
5.6.160.0050.02817.71
5.6.150.0120.03117.74
5.6.140.0110.02017.66
5.6.130.0000.02817.82
5.6.120.0030.02417.62
5.6.110.0070.02417.73
5.6.100.0140.03117.53
5.6.90.0050.03017.52
5.6.80.0070.04417.29
5.6.70.0040.04717.46
5.6.60.0050.04017.22
5.6.50.0070.02217.25
5.6.40.0070.03717.28
5.6.30.0030.02817.40
5.6.20.0070.04017.20
5.6.10.0070.04717.23
5.6.00.0070.03417.39
5.5.380.0080.02517.27
5.5.370.0050.03117.33
5.5.360.0100.03717.30
5.5.350.0070.02717.28
5.5.340.0080.02017.41
5.5.330.0110.03317.70
5.5.320.0070.03917.53
5.5.310.0100.03717.42
5.5.300.0080.04317.25
5.5.290.0070.03517.47
5.5.280.0050.02317.55
5.5.270.0050.04617.55
5.5.260.0120.03817.37
5.5.250.0020.03017.41
5.5.240.0090.03817.01
5.5.230.0030.02517.20
5.5.220.0080.01817.37
5.5.210.0050.04517.10
5.5.200.0050.03317.14
5.5.190.0070.04017.20
5.5.180.0040.03117.16
5.5.170.0060.00614.28
5.5.160.0070.02817.04
5.5.150.0070.03517.15
5.5.140.0020.02917.11
5.5.130.0030.02117.14
5.5.120.0110.03317.22
5.5.110.0070.02217.18
5.5.100.0030.03017.00
5.5.90.0030.04217.03
5.5.80.0080.02717.08
5.5.70.0000.02717.07
5.5.60.0100.03217.23
5.5.50.0070.03617.19
5.5.40.0050.04717.10
5.5.30.0070.02517.07
5.5.20.0080.02017.02
5.5.10.0040.02217.04
5.5.00.0070.04016.95
5.4.450.0090.03515.22
5.4.440.0080.04014.90
5.4.430.0090.03415.17
5.4.420.0060.03815.18
5.4.410.0090.03915.19
5.4.400.0030.04014.88
5.4.390.0030.03014.95
5.4.380.0020.02314.82
5.4.370.0030.04114.87
5.4.360.0050.02814.81
5.4.350.0040.02214.96
5.4.340.0000.02714.85
5.4.330.0000.01210.69
5.4.320.0080.03814.93
5.4.310.0100.02314.94
5.4.300.0080.04214.73
5.4.290.0030.03414.80
5.4.280.0060.03314.88
5.4.270.0070.01714.89
5.4.260.0050.02514.95
5.4.250.0070.01814.92
5.4.240.0070.03714.86
5.4.230.0070.02514.98
5.4.220.0050.04014.87
5.4.210.0000.02514.90
5.4.200.0110.03514.79
5.4.190.0070.04714.90
5.4.180.0020.04514.81
5.4.170.0070.03314.80
5.4.160.0080.02414.88
5.4.150.0030.03014.91
5.4.140.0020.03713.49
5.4.130.0050.02213.54
5.4.120.0030.03013.53
5.4.110.0060.03513.56
5.4.100.0070.03913.46
5.4.90.0040.02613.59
5.4.80.0050.03513.52
5.4.70.0070.02013.52
5.4.60.0000.04413.44
5.4.50.0060.03813.51
5.4.40.0120.03213.46
5.4.30.0030.04113.59
5.4.20.0090.02813.46
5.4.10.0030.04113.53
5.4.00.0060.01713.25
5.3.290.0070.01812.61
5.3.280.0070.04312.63
5.3.270.0030.04112.65
5.3.260.0040.02912.57
5.3.250.0030.04212.66
5.3.240.0050.02512.64
5.3.230.0070.04212.63
5.3.220.0070.04312.55
5.3.210.0030.02412.63
5.3.200.0050.03912.64
5.3.190.0060.03512.62
5.3.180.0100.03512.63
5.3.170.0070.04112.59
5.3.160.0050.03812.63
5.3.150.0040.03812.62
5.3.140.0050.03712.61
5.3.130.0050.03912.62
5.3.120.0060.02512.62
5.3.110.0030.02712.59
5.3.100.0060.01812.30
5.3.90.0070.03812.35
5.3.80.0080.01512.23
5.3.70.0050.01812.29
5.3.60.0030.04112.23
5.3.50.0050.04012.25
5.3.40.0050.04012.25
5.3.30.0050.03612.23
5.3.20.0020.04312.18
5.3.10.0050.02612.11
5.3.00.0050.03712.14
5.2.170.0030.03311.00
5.2.160.0000.03711.09
5.2.150.0070.06011.00
5.2.140.0030.05311.01
5.2.130.0030.03011.18
5.2.120.0070.02311.16
5.2.110.0030.03010.93
5.2.100.0000.05711.07
5.2.90.0030.05011.11
5.2.80.0070.03011.17
5.2.70.0070.05711.07
5.2.60.0030.05011.05
5.2.50.0030.05310.89
5.2.40.0100.02710.87
5.2.30.0070.03710.98
5.2.20.0000.03311.00
5.2.10.0030.06010.80
5.2.00.0030.05010.71
5.1.60.0000.0379.84
5.1.50.0000.05710.07
5.1.40.0030.0309.97
5.1.30.0070.03710.27
5.1.20.0070.02710.22
5.1.10.0100.02010.08
5.1.00.0070.05310.07
5.0.50.0000.0238.54
5.0.40.0070.0178.43
5.0.30.0000.0338.24
5.0.20.0030.0208.26
5.0.10.0030.0478.18
5.0.00.0030.0438.16
4.4.90.0070.0208.13
4.4.80.0030.0208.13
4.4.70.0000.0178.13
4.4.60.0030.0308.13
4.4.50.0070.0208.13
4.4.40.0030.0238.13
4.4.30.0000.0408.13
4.4.20.0030.0378.13
4.4.10.0030.0178.13
4.4.00.0030.0308.13
4.3.110.0030.0138.13
4.3.100.0130.0238.13
4.3.90.0070.0278.13
4.3.80.0000.0538.13
4.3.70.0070.0308.13
4.3.60.0030.0238.13
4.3.50.0030.0238.13
4.3.40.0000.0438.13
4.3.30.0030.0178.13
4.3.20.0030.0308.13
4.3.10.0030.0338.13
4.3.00.0000.0338.13

preferences:
44.51 ms | 400 KiB | 5 Q