3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "Compare two numeric strings (same semantic 1): (NAN == 0) = " . (NAN == 0 ? 'true' : 'false') . "\n"; echo "Compare two numeric strings (same semantic 2): (NAN > 1 ) = " . (NAN > 1 ? 'true' : 'false') . "\n"; echo "Compare two numeric strings (same semantic 3): (NAN < 1) = " . (NAN < 1 ? 'true' : 'false') . "\n"; echo "Compare two numeric strings (same semantic 4): (NAN == -1) = " . (NAN == -1 ? 'true' : 'false') . "\n"; echo "Compare two numeric strings (same semantic 5): (NAN > -1) = " . (NAN > -1 ? 'true' : 'false') . "\n"; echo "Compare two numeric strings (same semantic 6): (NAN > -1) = " . (NAN > -1 ? 'true' : 'false') . "\n";

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.0110.00316.50
8.3.50.0200.00222.11
8.3.40.0130.00318.63
8.3.30.0160.00319.04
8.3.20.0040.00420.23
8.3.10.0000.00821.85
8.3.00.0040.00417.89
8.2.180.0090.00616.38
8.2.170.0200.00022.96
8.2.160.0070.00720.39
8.2.150.0050.00324.18
8.2.140.0070.00024.66
8.2.130.0000.00726.16
8.2.120.0080.00021.16
8.2.110.0090.00022.21
8.2.100.0120.00018.09
8.2.90.0040.00419.28
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0060.00317.92
8.2.50.0000.00918.07
8.2.40.0030.00618.03
8.2.30.0030.00518.27
8.2.20.0060.00617.72
8.2.10.0080.00017.99
8.2.00.0080.00017.68
8.1.280.0150.00025.92
8.1.270.0060.00323.96
8.1.260.0060.00326.35
8.1.250.0070.00028.09
8.1.240.0050.00521.94
8.1.230.0040.00719.10
8.1.220.0030.00617.74
8.1.210.0000.00818.77
8.1.200.0070.00317.10
8.1.190.0080.00317.22
8.1.180.0000.00718.10
8.1.170.0000.00818.49
8.1.160.0000.00721.94
8.1.150.0070.00018.72
8.1.140.0040.00417.26
8.1.130.0000.00717.67
8.1.120.0040.00417.27
8.1.110.0000.00717.29
8.1.100.0000.00717.28
8.1.90.0030.00317.34
8.1.80.0000.00717.38
8.1.70.0030.00317.39
8.1.60.0110.00017.44
8.1.50.0000.00717.42
8.1.40.0060.00317.44
8.1.30.0030.00517.56
8.1.20.0000.00717.61
8.1.10.0060.00317.45
8.1.00.0040.00417.38
8.0.300.0080.00018.77
8.0.290.0040.00416.63
8.0.280.0000.00818.38
8.0.270.0000.00717.22
8.0.260.0000.00617.19
8.0.250.0030.00316.94
8.0.240.0000.00716.91
8.0.230.0030.00316.96
8.0.220.0030.00316.75
8.0.210.0030.00316.86
8.0.200.0030.00616.79
8.0.190.0000.00716.97
8.0.180.0040.00416.80
8.0.170.0030.00616.91
8.0.160.0030.00416.88
8.0.150.0030.00416.78
8.0.140.0030.00516.75
8.0.130.0050.00313.40
8.0.120.0080.00316.73
8.0.110.0000.00816.95
8.0.100.0040.00316.95
8.0.90.0040.00416.74
8.0.80.0040.01416.88
8.0.70.0040.00416.67
8.0.60.0040.00416.64
8.0.50.0040.00416.84
8.0.30.0110.00817.12
8.0.20.0110.01217.40
8.0.10.0000.00816.83
8.0.00.0050.01416.85
7.4.330.0000.00615.00
7.4.320.0030.00316.47
7.4.300.0060.00016.45
7.4.290.0000.00716.45
7.4.280.0000.00716.27
7.4.270.0030.00316.39
7.4.260.0020.00516.25
7.4.250.0030.00516.43
7.4.240.0040.00416.47
7.4.230.0000.00716.22
7.4.220.0110.00616.37
7.4.210.0060.01216.49
7.4.200.0030.00316.21
7.4.160.0120.00316.41
7.4.150.0150.00617.40
7.4.140.0070.01017.86
7.4.130.0060.01116.43
7.4.120.0080.01116.36
7.4.110.0110.00716.53
7.4.100.0170.00016.29
7.4.90.0090.00916.27
7.4.80.0080.01419.39
7.4.70.0130.00616.45
7.4.60.0130.00716.27
7.4.50.0020.00216.61
7.4.40.0070.01016.46
7.4.30.0070.01316.45
7.4.10.0100.01016.23
7.4.00.0070.00915.30
7.3.330.0030.00313.00
7.3.320.0030.00313.17
7.3.310.0030.00316.08
7.3.300.0080.00016.25
7.3.290.0030.01016.23
7.3.280.0100.00816.29
7.3.270.0100.01317.40
7.3.260.0100.00716.45
7.3.250.0100.01016.35
7.3.240.0070.01316.27
7.3.230.0090.00816.39
7.3.210.0120.00616.21
7.3.200.0100.01019.39
7.3.190.0040.01416.29
7.3.180.0070.01416.58
7.3.170.0030.01316.50
7.3.160.0030.01416.33
7.3.130.0090.01016.08
7.3.120.0060.00815.25
7.3.110.0050.01015.14
7.3.100.0070.00815.26
7.3.90.0050.00815.24
7.3.80.0080.00515.37
7.3.70.0050.01015.24
7.3.60.0050.00915.24
7.3.50.0070.00515.23
7.3.40.0080.00615.26
7.3.30.0080.00415.32
7.3.20.0080.00817.11
7.3.10.0040.00916.95
7.3.00.0080.00717.07
7.2.330.0060.01216.66
7.2.320.0180.00016.53
7.2.310.0110.00716.57
7.2.300.0060.01016.68
7.2.290.0130.01016.48
7.2.260.0060.01116.62
7.2.250.0080.01115.80
7.2.240.0060.01115.50
7.2.230.0080.00715.49
7.2.220.0070.00715.34
7.2.210.0100.00615.63
7.2.200.0030.01315.50
7.2.190.0080.00715.50
7.2.180.0060.00915.33
7.2.170.0070.00815.44
7.2.160.0050.00915.72
7.2.150.0080.00717.67
7.2.140.0050.01117.47
7.2.130.0070.00817.49
7.2.120.0070.00917.45
7.2.110.0050.00717.64
7.2.100.0080.00817.52
7.2.90.0050.00717.43
7.2.80.0050.01017.58
7.2.70.0070.01017.65
7.2.60.0090.01117.32
7.2.50.0080.00617.41
7.2.40.0030.01217.54
7.2.30.0080.00517.66
7.2.20.0080.00717.48
7.2.10.0080.00817.70
7.2.00.0050.00817.46
7.1.330.0050.00916.13
7.1.320.0040.01016.21
7.1.310.0070.00516.13
7.1.300.0090.00416.01
7.1.290.0040.00716.09
7.1.280.0020.00916.13
7.1.270.0060.00916.09
7.1.260.0060.00816.10
7.1.250.0070.00716.50
7.1.240.0070.00417.06
7.1.230.0040.01117.39
7.1.220.0120.00317.35
7.1.210.0060.00317.12
7.1.200.0060.00416.43
7.1.190.0000.01317.14
7.1.180.0060.00617.25
7.1.170.0040.00817.07
7.1.160.0000.00917.27
7.1.150.0030.00817.19
7.1.140.0060.00617.02
7.1.130.0060.01017.24
7.1.120.0060.00617.23
7.1.110.0080.00817.13
7.1.100.0070.00717.43
7.1.90.0090.00317.20
7.1.80.0070.00717.09
7.1.70.0050.00717.07
7.1.60.0050.01018.37
7.1.50.0100.00316.90
7.1.40.0060.00917.07
7.1.30.0030.01017.41
7.1.20.0060.00617.28
7.1.10.0060.01017.36
7.1.00.0030.04219.66
7.0.330.0100.00716.80
7.0.320.0060.01016.75
7.0.310.0080.00816.91
7.0.300.0080.00316.71
7.0.290.0030.00916.98
7.0.280.0030.00617.00
7.0.270.0070.00716.70
7.0.260.0000.01116.91
7.0.250.0000.01416.96
7.0.240.0000.01516.89
7.0.230.0030.00616.95
7.0.220.0090.00317.00
7.0.210.0060.00616.84
7.0.200.0060.00216.82
7.0.190.0030.00916.99
7.0.180.0100.00616.91
7.0.170.0030.01016.88
7.0.160.0060.00616.86
7.0.150.0000.01316.82
7.0.140.0020.04319.49
7.0.130.0000.01216.75
7.0.120.0000.01517.02
7.0.110.0070.00716.86
7.0.100.0030.00716.85
7.0.90.0040.00716.88
7.0.80.0090.00616.87
7.0.70.0070.00516.95
7.0.60.0080.02818.39
7.0.50.0030.03017.31
7.0.40.0060.03317.42
7.0.30.0150.02217.43
7.0.20.0170.02817.45
7.0.10.0080.04517.57
7.0.00.0110.02817.52
5.6.400.0040.01116.07
5.6.390.0000.01016.09
5.6.380.0000.01515.55
5.6.370.0070.00715.54
5.6.360.0070.00715.86
5.6.350.0000.01016.07
5.6.340.0030.01015.86
5.6.330.0040.00815.88
5.6.320.0070.01015.67
5.6.310.0030.01015.69
5.6.300.0030.01215.74
5.6.290.0100.00315.55
5.6.280.0020.04418.34
5.6.270.0100.00715.66
5.6.260.0090.00615.91
5.6.250.0050.00515.92
5.6.240.0060.00615.73
5.6.230.0030.01015.65
5.6.220.0030.01215.86
5.6.210.0070.04418.20
5.6.200.0100.01817.00
5.6.190.0030.02718.15
5.6.180.0150.04118.19
5.6.170.0200.03518.22
5.6.160.0120.04018.15
5.6.150.0050.03616.88
5.6.140.0080.03016.95
5.6.130.0020.05217.07
5.6.120.0060.03518.47
5.6.110.0050.03818.37
5.6.100.0050.04718.37
5.6.90.0080.02818.49
5.6.80.0090.04118.10
5.6.70.0070.01015.71
5.6.60.0060.00915.66
5.6.50.0040.01215.70
5.6.40.0090.00915.61
5.6.30.0040.01115.60
5.6.20.0090.00615.76
5.6.10.0040.01115.75
5.6.00.0030.01415.63
5.5.380.0120.00315.90
5.5.370.0030.00915.61
5.5.360.0070.01115.46
5.5.350.0190.04017.94
5.5.340.0060.02616.83
5.5.330.0110.03918.04
5.5.320.0130.02717.99
5.5.310.0210.04318.03
5.5.300.0100.04116.88
5.5.290.0090.04316.76
5.5.280.0160.04318.18
5.5.270.0120.04218.22
5.5.260.0140.03318.18
5.5.250.0070.02518.13
5.5.240.0030.04117.87
5.5.230.0030.01615.37
5.5.220.0030.01015.35
5.5.210.0050.01315.64
5.5.200.0070.01215.46
5.5.190.0030.01715.67
5.5.180.0130.00815.78
5.5.170.0090.00315.75
5.5.160.0130.00615.68
5.5.150.0080.01215.71
5.5.140.0140.00615.33
5.5.130.0060.01015.71
5.5.120.0040.01315.71
5.5.110.0140.00815.81
5.5.100.0110.01115.55
5.5.90.0090.01315.61
5.5.80.0090.00715.20
5.5.70.0110.00715.45
5.5.60.0080.01515.84
5.5.50.0080.01215.41
5.5.40.0150.00415.68
5.5.30.0040.01415.70
5.5.20.0000.01315.48
5.5.10.0150.00315.28
5.5.00.0120.00315.40
5.4.450.0370.03116.02
5.4.440.0280.04315.70
5.4.430.0110.03115.83
5.4.420.0200.02715.82
5.4.410.0080.03015.71
5.4.400.0270.03515.50
5.4.390.0250.03515.49
5.4.380.0100.03715.42
5.4.370.0130.02615.51
5.4.360.0100.02215.50
5.4.350.0040.02612.24
5.4.340.0170.05812.14
5.4.330.0100.00312.48
5.4.320.0060.02512.49
5.4.310.0060.02412.36
5.4.300.0040.02412.32
5.4.290.0080.03312.41
5.4.280.0040.02412.32
5.4.270.0070.02112.36
5.4.260.0060.02212.26
5.4.250.0080.02412.26
5.4.240.0060.02412.36
5.4.230.0070.02312.23
5.4.220.0060.02312.25
5.4.210.0050.02212.34
5.4.200.0080.02012.39
5.4.190.0030.02512.41
5.4.180.0050.02312.41
5.4.170.0070.02212.33
5.4.160.0090.02112.31
5.4.150.0100.03512.32
5.4.140.0040.02212.15
5.4.130.0080.02112.11
5.4.120.0060.01912.12
5.4.110.0020.02512.21
5.4.100.0020.02212.13
5.4.90.0070.02012.10
5.4.80.0060.01912.10
5.4.70.0030.02612.14
5.4.60.0040.02812.13
5.4.50.0060.02912.10
5.4.40.0050.02912.06
5.4.30.0050.03412.19
5.4.20.0050.03012.21
5.4.10.0050.02712.15
5.4.00.0070.02911.86
5.3.290.0090.02412.85
5.3.280.0120.02912.80
5.3.270.0050.04312.74
5.3.260.0050.02412.78
5.3.250.0050.02512.81
5.3.240.0080.02412.72
5.3.230.0140.03212.77
5.3.220.0070.03212.60
5.3.210.0070.02112.66
5.3.200.0040.02412.66
5.3.190.0060.02312.70
5.3.180.0050.02112.70
5.3.170.0020.02712.77
5.3.160.0060.02312.78
5.3.150.0070.02812.79
5.3.140.0100.02612.72
5.3.130.0090.03412.79
5.3.120.0090.02812.68
5.3.110.0050.03412.77
5.3.100.0100.02412.38
5.3.90.0070.02512.46
5.3.80.0090.03012.36
5.3.70.0090.02712.33
5.3.60.0070.02712.38
5.3.50.0090.02212.28
5.3.40.0050.02512.46
5.3.30.0080.02312.46
5.3.20.0110.02112.17
5.3.10.0090.02312.23
5.3.00.0050.02912.05
5.2.170.0060.0309.18
5.2.160.0050.0309.18
5.2.150.0050.0319.18
5.2.140.0040.0319.17
5.2.130.0050.0289.14
5.2.120.0040.0299.13
5.2.110.0040.0309.14
5.2.100.0060.0289.14
5.2.90.0060.0289.14
5.2.80.0040.0319.13
5.2.70.0050.0309.14
5.2.60.0050.0299.08
5.2.50.0070.0289.05
5.2.40.0070.0279.04
5.2.30.0050.0309.01
5.2.20.0040.0309.00
5.2.10.0050.0278.92
5.2.00.0070.0328.78
5.1.60.0010.0278.07
5.1.50.0040.0258.06
5.1.40.0010.0278.04
5.1.30.0020.0298.39
5.1.20.0050.0278.41
5.1.10.0040.0288.14
5.1.00.0040.0258.14
5.0.50.0040.0206.61
5.0.40.0050.0186.48
5.0.30.0030.0336.29
5.0.20.0060.0206.26
5.0.10.0020.0226.24
5.0.00.0010.0336.23
4.4.90.0030.0164.78
4.4.80.0030.0154.75
4.4.70.0020.0184.75
4.4.60.0040.0144.76
4.4.50.0020.0164.77
4.4.40.0030.0264.70
4.4.30.0050.0144.76
4.4.20.0040.0154.85
4.4.10.0040.0154.85
4.4.00.0010.0274.76
4.3.110.0040.0154.66
4.3.100.0060.0124.66
4.3.90.0030.0174.64
4.3.80.0040.0244.58
4.3.70.0020.0154.63
4.3.60.0010.0174.63
4.3.50.0020.0224.63
4.3.40.0050.0274.54
4.3.30.0030.0163.30
4.3.20.0020.0173.27
4.3.10.0020.0213.23
4.3.00.0070.0278.35

preferences:
52.46 ms | 401 KiB | 5 Q