3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "Compare two non numeric strings: ('str' == '0') = " . ('str' == '0' ? 'true' : 'false') . "\n"; echo "Compare non numeric string to intteger 0: ('str' == 0) = " . ('str' == 0 ? 'true' : 'false') . "\n"; echo "Compare two numeric strings (same senamtic): ('1e1' == '10') = " . ('1e1' == '10' ? 'true' : 'false') . "\n"; echo "Compare two numeric strings (precision1): ('0.99999999999999994' == '1') = " . ('0.99999999999999994' == '1' ? 'true' : 'false') . "\n"; echo "Compare two numeric strings (precision2): ('0.99999999999999995' == '1') = " . ('0.99999999999999995' == '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.70.0040.01218.30
8.3.60.0110.00418.30
8.3.50.0070.00922.11
8.3.40.0110.00418.67
8.3.30.0040.01120.39
8.3.20.0040.00418.82
8.3.10.0070.00020.95
8.3.00.0080.00019.56
8.2.180.0040.01116.63
8.2.170.0070.01322.96
8.2.160.0070.00720.47
8.2.150.0090.00024.18
8.2.140.0040.01124.66
8.2.130.0070.00026.16
8.2.120.0000.00821.13
8.2.110.0100.00021.01
8.2.100.0070.00417.91
8.2.90.0000.00817.72
8.2.80.0080.00017.97
8.2.70.0080.00017.50
8.2.60.0040.00417.50
8.2.50.0030.00617.63
8.2.40.0040.00418.03
8.2.30.0040.00419.39
8.2.20.0000.00817.56
8.2.10.0000.00717.67
8.2.00.0040.00417.69
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0090.00022.47
8.1.230.0090.00320.95
8.1.220.0060.00317.74
8.1.210.0040.00418.96
8.1.200.0050.00317.22
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0050.00318.46
8.1.160.0040.00418.89
8.1.150.0070.00018.48
8.1.140.0000.00717.41
8.1.130.0030.00317.82
8.1.120.0030.00317.46
8.1.110.0000.00717.34
8.1.100.0040.00417.44
8.1.90.0040.00417.36
8.1.80.0040.00417.47
8.1.70.0030.00317.34
8.1.60.0090.00317.58
8.1.50.0050.00217.41
8.1.40.0050.00217.52
8.1.30.0000.00817.62
8.1.20.0030.00517.65
8.1.10.0040.00417.36
8.1.00.0040.00417.46
8.0.300.0070.00019.89
8.0.290.0050.00216.63
8.0.280.0030.00318.37
8.0.270.0030.00317.22
8.0.260.0030.00316.96
8.0.250.0000.00717.01
8.0.240.0000.00716.97
8.0.230.0040.00416.98
8.0.220.0000.00716.91
8.0.210.0040.00416.88
8.0.200.0060.00016.97
8.0.190.0050.00216.96
8.0.180.0040.00416.81
8.0.170.0050.00216.87
8.0.160.0000.00816.97
8.0.150.0000.00716.89
8.0.140.0040.00416.87
8.0.130.0090.00013.28
8.0.120.0060.00316.77
8.0.110.0000.00716.87
8.0.100.0050.00216.98
8.0.90.0040.00416.74
8.0.80.0100.00916.89
8.0.70.0000.00716.74
8.0.60.0000.00716.88
8.0.50.0000.00716.80
8.0.30.0080.01117.09
8.0.20.0140.00517.40
8.0.10.0000.00716.84
8.0.00.0100.00716.82
7.4.330.0020.00316.77
7.4.320.0030.00316.31
7.4.300.0040.00416.55
7.4.290.0040.00416.52
7.4.280.0030.00316.32
7.4.270.0070.00016.42
7.4.260.0000.00613.22
7.4.250.0060.00316.42
7.4.240.0030.00316.50
7.4.230.0000.00716.25
7.4.220.0130.00316.55
7.4.210.0110.00416.37
7.4.200.0070.00016.61
7.4.190.0080.00016.54
7.4.160.0060.01016.43
7.4.150.0090.00917.40
7.4.140.0110.00817.86
7.4.130.0130.00416.57
7.4.120.0100.01216.45
7.4.110.0100.01316.47
7.4.100.0070.01016.38
7.4.90.0060.01816.47
7.4.80.0000.01819.39
7.4.70.0070.01016.36
7.4.60.0120.00916.44
7.4.50.0030.00316.24
7.4.40.0000.01622.77
7.4.30.0070.01316.48
7.4.00.0110.00614.76
7.3.330.0060.00013.27
7.3.320.0050.00013.07
7.3.310.0000.00716.27
7.3.300.0030.00316.30
7.3.290.0140.00416.27
7.3.280.0100.00916.29
7.3.270.0100.00717.40
7.3.260.0130.00618.24
7.3.250.0080.01016.28
7.3.240.0030.01516.59
7.3.230.0070.01016.39
7.3.210.0090.00616.28
7.3.200.0130.00719.39
7.3.190.0070.01016.49
7.3.180.0150.00616.27
7.3.170.0130.00916.46
7.3.160.0130.00416.46
7.3.120.0110.00614.70
7.3.110.0110.00614.70
7.3.100.0060.00814.90
7.3.90.0070.00714.54
7.3.80.0050.00914.92
7.3.70.0020.01214.67
7.3.60.0080.00614.69
7.3.50.0030.01014.64
7.3.40.0030.00814.84
7.3.30.0040.01114.85
7.3.20.0070.00816.58
7.3.10.0110.00516.52
7.3.00.0020.01216.44
7.2.330.0090.00916.56
7.2.320.0110.00916.57
7.2.310.0140.00516.57
7.2.300.0130.01016.46
7.2.290.0080.00816.72
7.2.250.0100.00715.16
7.2.240.0060.01014.79
7.2.230.0050.01014.79
7.2.220.0090.00614.83
7.2.210.0050.01014.85
7.2.200.0020.01014.98
7.2.190.0060.00914.89
7.2.180.0090.00514.76
7.2.170.0040.00914.97
7.2.160.0000.01415.03
7.2.150.0000.01116.54
7.2.140.0040.00716.77
7.2.130.0130.00316.97
7.2.120.0030.00916.70
7.2.110.0060.00816.66
7.2.100.0090.00516.63
7.2.90.0080.00816.85
7.2.80.0070.00716.70
7.2.70.0020.01416.68
7.2.60.0100.00516.92
7.2.50.0090.00216.84
7.2.40.0090.00516.83
7.2.30.0100.00616.78
7.2.20.0050.00916.80
7.2.10.0080.00916.85
7.2.00.0010.01017.60
7.1.330.0050.01115.75
7.1.320.0090.00615.70
7.1.310.0050.00815.66
7.1.300.0030.01215.70
7.1.290.0060.00315.57
7.1.280.0050.00615.66
7.1.270.0040.01015.55
7.1.260.0050.01015.60
7.1.250.0120.00315.69
7.1.230.0100.00415.50
7.1.220.0140.00415.43
7.1.210.0120.00015.70
7.1.200.0120.00615.81
7.1.190.0100.00315.73
7.1.180.0080.00615.69
7.1.170.0000.01215.86
7.1.160.0110.00415.84
7.1.150.0060.00315.80
7.1.140.0030.01015.55
7.1.130.0070.01015.43
7.1.120.0090.00615.79
7.1.110.0060.00615.35
7.1.100.0070.00316.80
7.1.90.0100.00315.63
7.1.80.0030.00915.43
7.1.70.0060.00616.30
7.1.60.0080.00616.54
7.1.50.0080.00816.32
7.1.40.0100.00715.75
7.1.30.0060.00915.79
7.1.20.0040.01615.88
7.1.10.0090.00315.77
7.1.00.0050.02319.10
7.0.310.0050.00515.25
7.0.300.0040.01115.30
7.0.290.0070.00715.27
7.0.280.0030.01015.27
7.0.270.0100.00315.29
7.0.260.0060.00614.84
7.0.250.0060.00615.07
7.0.240.0110.00415.46
7.0.230.0030.00915.15
7.0.220.0100.00315.38
7.0.210.0080.00415.45
7.0.200.0050.01016.12
7.0.190.0000.01315.10
7.0.180.0030.00715.36
7.0.170.0060.00615.46
7.0.160.0100.00315.48
7.0.150.0040.00715.45
7.0.140.0070.04018.65
7.0.130.0000.01215.40
7.0.120.0030.00615.43
7.0.110.0060.00615.32
7.0.100.0070.03518.51
7.0.90.0030.04618.60
7.0.80.0120.03518.53
7.0.70.0090.02118.50
7.0.60.0060.04818.61
7.0.50.0030.03218.82
7.0.40.0120.03816.69
7.0.30.0070.03916.79
7.0.20.0020.04916.66
7.0.10.0060.03916.71
7.0.00.0070.03116.64
5.6.380.0180.00014.00
5.6.370.0030.00614.51
5.6.360.0030.00914.64
5.6.350.0100.00314.69
5.6.340.0030.00614.16
5.6.330.0000.01214.50
5.6.320.0060.00614.47
5.6.310.0030.01014.59
5.6.300.0070.00714.34
5.6.290.0040.00814.39
5.6.280.0020.04217.55
5.6.270.0100.00614.20
5.6.260.0070.00714.55
5.6.250.0050.04317.37
5.6.240.0000.05317.45
5.6.230.0090.02517.46
5.6.220.0070.04217.42
5.6.210.0060.02517.60
5.6.200.0040.04217.61
5.6.190.0100.03917.66
5.6.180.0020.04817.81
5.6.170.0030.04517.65
5.6.160.0070.04417.74
5.6.150.0030.03317.62
5.6.140.0140.04117.56
5.6.130.0080.04317.65
5.6.120.0060.04317.70
5.6.110.0050.04517.65
5.6.100.0050.04317.67
5.6.90.0110.04517.61
5.6.80.0030.04517.38
5.6.70.0050.04717.20
5.6.60.0100.03917.21
5.6.50.0000.04017.31
5.6.40.0100.04217.33
5.6.30.0100.04017.38
5.6.20.0070.04317.40
5.6.10.0020.04717.32
5.6.00.0060.04117.25
5.5.380.0090.03616.66
5.5.370.0050.03116.65
5.5.360.0020.03916.58
5.5.350.0150.03716.60
5.5.340.0050.03016.76
5.5.330.0050.04416.83
5.5.320.0060.02516.81
5.5.310.0100.04016.85
5.5.300.0070.03516.82
5.5.290.0070.04416.78
5.5.280.0050.02716.77
5.5.270.0020.04016.77
5.5.260.0070.04416.79
5.5.250.0070.03816.68
5.5.240.0080.03916.48
5.5.230.0060.04416.50
5.5.220.0070.04416.46
5.5.210.0030.04216.48
5.5.200.0030.04416.45
5.5.190.0060.04416.50
5.5.180.0040.02716.46
5.5.170.0130.00013.94
5.5.160.0050.03516.48
5.5.150.0120.03516.46
5.5.140.0100.04016.46
5.5.130.0050.04616.43
5.5.120.0120.03016.51
5.5.110.0090.02616.50
5.5.100.0130.03216.43
5.5.90.0050.04216.41
5.5.80.0130.03816.44
5.5.70.0100.03816.44
5.5.60.0020.04016.40
5.5.50.0120.03716.45
5.5.40.0070.04016.43
5.5.30.0020.04716.46
5.5.20.0100.03616.46
5.5.10.0100.03516.38
5.5.00.0050.04216.45
5.4.450.0050.03616.03
5.4.440.0020.03016.08
5.4.430.0170.02616.07
5.4.420.0050.02516.08
5.4.410.0100.03816.01
5.4.400.0040.02515.95
5.4.390.0060.03915.91
5.4.380.0100.03815.89
5.4.370.0040.03015.91
5.4.360.0070.04115.88
5.4.350.0090.02115.80
5.4.340.0130.03315.91
5.4.330.0070.00712.79
5.4.320.0050.02615.87
5.4.310.0030.04315.92
5.4.300.0030.03315.95
5.4.290.0070.03915.96
5.4.280.0060.04115.96
5.4.270.0060.02615.91
5.4.260.0080.03715.98
5.4.250.0100.04015.91
5.4.240.0070.03615.88
5.4.230.0110.03515.91
5.4.220.0090.04215.90
5.4.210.0060.04315.92
5.4.200.0130.03315.92
5.4.190.0110.03815.95
5.4.180.0070.03315.85
5.4.170.0090.02316.00
5.4.160.0150.03415.78
5.4.150.0070.04215.94
5.4.140.0070.03614.58
5.4.130.0080.03814.56
5.4.120.0100.03314.54
5.4.110.0090.03714.53
5.4.100.0110.03514.56
5.4.90.0070.03514.57
5.4.80.0090.03714.55
5.4.70.0080.03814.56
5.4.60.0090.02114.54
5.4.50.0080.04114.54
5.4.40.0100.03514.53
5.4.30.0080.03014.51
5.4.20.0080.03714.56
5.4.10.0100.02714.61
5.4.00.0080.03414.25
5.3.290.0080.03813.71
5.3.280.0060.03613.62
5.3.270.0110.03313.65
5.3.260.0090.03413.69
5.3.250.0130.03713.69
5.3.240.0040.02913.68
5.3.230.0050.02213.62
5.3.220.0090.03413.67
5.3.210.0080.04113.61
5.3.200.0100.03713.68
5.3.190.0130.01813.66
5.3.180.0130.03313.67
5.3.170.0090.03813.58
5.3.160.0110.02413.60
5.3.150.0050.04213.60
5.3.140.0110.02113.64
5.3.130.0050.04313.63
5.3.120.0130.03713.59
5.3.110.0120.03613.65
5.3.100.0070.04013.32
5.3.90.0130.03013.33
5.3.80.0060.03713.39
5.3.70.0080.03713.34
5.3.60.0070.04113.27
5.3.50.0070.03813.32
5.3.40.0100.03813.36
5.3.30.0060.03813.32
5.3.20.0140.03313.13
5.3.10.0090.03513.22
5.3.00.0120.03713.14
5.2.170.0110.02012.53
5.2.160.0100.03012.53
5.2.150.0030.03512.53
5.2.140.0080.03412.53
5.2.130.0030.02612.53
5.2.120.0050.03312.53
5.2.110.0090.02912.53
5.2.100.0090.02712.53
5.2.90.0090.02512.53
5.2.80.0080.03012.53
5.2.70.0050.02212.53
5.2.60.0080.03112.53
5.2.50.0080.02512.53
5.2.40.0090.02812.53
5.2.30.0100.02812.53
5.2.20.0050.03312.53
5.2.10.0040.02612.53
5.2.00.0030.02012.53
5.1.60.0050.02712.53
5.1.50.0050.02712.53
5.1.40.0040.02612.53
5.1.30.0050.02912.53
5.1.20.0050.01812.53
5.1.10.0020.02712.53
5.1.00.0070.02712.53
5.0.50.0030.02612.53
5.0.40.0050.02212.53
5.0.30.0030.03012.53
5.0.20.0020.02412.53
5.0.10.0100.01812.53
5.0.00.0000.03312.53
4.4.90.0050.01512.53
4.4.80.0050.01812.53
4.4.70.0020.02112.53
4.4.60.0020.01912.53
4.4.50.0040.02012.53
4.4.40.0060.02512.53
4.4.30.0050.01712.53
4.4.20.0070.01712.53
4.4.10.0050.01712.53
4.4.00.0020.03012.53
4.3.110.0000.02412.53
4.3.100.0030.01712.53
4.3.90.0070.01612.53
4.3.80.0040.01912.53
4.3.70.0040.01712.53
4.3.60.0080.01612.53
4.3.50.0020.01812.53
4.3.40.0020.02712.53
4.3.30.0020.01912.53
4.3.20.0040.01712.53
4.3.10.0020.01612.53
4.3.00.0030.01212.53

preferences:
70.79 ms | 401 KiB | 5 Q