3v4l.org

run code in 300+ PHP versions simultaneously
<?php $number = "2sdfsdfjoi"; var_dump($number == 2); var_dump($number === 2); $number = "22sdfsdfjoi"; var_dump($number == 2); $string1 = "foo"; $string2 = "bar"; var_dump($string1 == $string2);

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.0140.00018.59
8.3.30.0040.01218.94
8.3.20.0080.00020.39
8.3.10.0080.00023.54
8.3.00.0030.00519.15
8.2.170.0110.00422.96
8.2.160.0110.00320.34
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00419.66
8.2.110.0070.00321.10
8.2.100.0040.00817.78
8.2.90.0050.00517.25
8.2.80.0030.00517.97
8.2.70.0030.00517.66
8.2.60.0000.00818.09
8.2.50.0050.00318.10
8.2.40.0040.00419.34
8.2.30.0040.00419.15
8.2.20.0000.00717.67
8.2.10.0050.00318.16
8.2.00.0050.00317.68
8.1.270.0040.00418.71
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00323.96
8.1.230.0040.00821.01
8.1.220.0040.00417.74
8.1.210.0100.00018.77
8.1.200.0140.00616.84
8.1.190.0030.00717.22
8.1.180.0000.00818.10
8.1.170.0000.00918.57
8.1.160.0070.00018.98
8.1.150.0040.00418.86
8.1.140.0050.00217.35
8.1.130.0070.00017.77
8.1.120.0030.00517.50
8.1.110.0040.00417.46
8.1.100.0040.00417.27
8.1.90.0040.00417.41
8.1.80.0000.00717.44
8.1.70.0000.00717.36
8.1.60.0060.00317.46
8.1.50.0000.00917.52
8.1.40.0000.00817.40
8.1.30.0040.00417.54
8.1.20.0030.00617.63
8.1.10.0000.00817.48
8.1.00.0030.00517.41
8.0.300.0000.00721.46
8.0.290.0000.00816.75
8.0.280.0000.00718.43
8.0.270.0040.00417.23
8.0.260.0000.00617.29
8.0.250.0000.00616.96
8.0.240.0000.00916.98
8.0.230.0040.00417.01
8.0.220.0000.00716.91
8.0.210.0030.00316.90
8.0.200.0000.00716.93
8.0.190.0000.00716.79
8.0.180.0040.00416.95
8.0.170.0060.00316.92
8.0.160.0030.00316.99
8.0.150.0000.00716.75
8.0.140.0000.00716.78
8.0.130.0030.00313.31
8.0.120.0030.00516.84
8.0.110.0040.00416.92
8.0.100.0040.00416.80
8.0.90.0040.00416.70
8.0.80.0070.01016.81
8.0.70.0040.00416.76
8.0.60.0000.00716.69
8.0.50.0040.00416.77
8.0.30.0100.00917.26
8.0.20.0090.00917.40
8.0.10.0040.00416.96
8.0.00.0140.00516.67
7.4.330.0050.00015.14
7.4.320.0000.00716.41
7.4.300.0070.00016.47
7.4.290.0060.00316.55
7.4.280.0070.00016.58
7.4.270.0070.00016.39
7.4.260.0030.00616.56
7.4.250.0000.00816.55
7.4.240.0000.00816.43
7.4.230.0000.00716.59
7.4.220.0150.00416.65
7.4.210.0000.01616.60
7.4.200.0000.00816.34
7.4.160.0090.00616.55
7.4.150.0130.00317.40
7.4.140.0110.00817.86
7.4.130.0080.01016.47
7.4.120.0130.00416.48
7.4.110.0150.01016.64
7.4.100.0120.00916.43
7.4.90.0090.01016.45
7.4.80.0100.01019.39
7.4.70.0090.00916.49
7.4.60.0070.01016.46
7.4.50.0030.00616.55
7.4.40.0070.01416.52
7.4.30.0030.01316.60
7.4.00.0070.00915.11
7.3.330.0000.00612.97
7.3.320.0000.00713.10
7.3.310.0000.00716.19
7.3.300.0000.00616.27
7.3.290.0070.00916.25
7.3.280.0110.00916.26
7.3.270.0110.00517.40
7.3.260.0060.01316.47
7.3.250.0070.01116.43
7.3.240.0120.00916.48
7.3.230.0140.00416.48
7.3.210.0090.00816.22
7.3.200.0040.01319.39
7.3.190.0030.01416.27
7.3.180.0100.01016.21
7.3.170.0120.00916.44
7.3.160.0060.01016.33
7.3.120.0030.01414.62
7.3.110.0070.01114.84
7.3.100.0000.01614.47
7.3.90.0130.00314.43
7.3.80.0040.01114.70
7.3.70.0040.00714.66
7.3.60.0060.00614.36
7.3.50.0030.00714.67
7.3.40.0040.01114.50
7.3.30.0090.00314.58
7.3.20.0130.00016.60
7.3.10.0040.00716.62
7.3.00.0080.00616.63
7.2.330.0100.00716.67
7.2.320.0140.00316.56
7.2.310.0090.00916.49
7.2.300.0000.01616.57
7.2.290.0090.00916.62
7.2.250.0070.01315.05
7.2.240.0100.01014.79
7.2.230.0080.00814.63
7.2.220.0030.01414.79
7.2.210.0040.01114.64
7.2.200.0000.01114.88
7.2.190.0060.00714.76
7.2.180.0090.00014.79
7.2.170.0040.01114.88
7.2.00.0090.00919.36
7.1.330.0100.00315.87
7.1.320.0100.00315.34
7.1.310.0000.01615.57
7.1.300.0080.00815.78
7.1.290.0030.00615.73
7.1.280.0040.00815.57
7.1.270.0030.01115.52
7.1.260.0090.00015.84
7.1.100.0040.00418.00
7.1.70.0060.00316.95
7.1.60.0090.01519.22
7.1.50.0100.01016.90
7.1.00.0030.07722.45
7.0.200.0090.00316.80
7.0.140.0000.07322.00
7.0.60.0170.07019.89
7.0.50.0000.04317.85
7.0.40.0070.06020.20
7.0.30.0230.06720.03
7.0.20.0430.06720.00
7.0.10.0130.08020.29
7.0.00.0130.08020.09
5.6.280.0100.06721.07
5.6.210.0170.05720.60
5.6.200.0070.06718.18
5.6.190.0130.03320.48
5.6.180.0300.08320.41
5.6.170.0200.04020.52
5.6.160.0030.08320.40
5.6.150.0130.06718.21
5.6.140.0070.08018.18
5.6.130.0030.08018.10
5.6.120.0030.08321.11
5.6.110.0170.06721.01
5.6.100.0070.09020.93
5.6.90.0070.08720.95
5.6.80.0100.03020.24
5.5.350.0170.08020.52
5.5.340.0070.06017.91
5.5.330.0000.04320.21
5.5.320.0170.04320.20
5.5.310.0230.03720.30
5.5.300.0070.03717.98
5.5.290.0030.05317.95
5.5.280.0170.07720.97
5.5.270.0070.08720.84
5.5.260.0130.07720.83
5.5.250.0030.04020.65
5.5.240.0130.07020.23
5.4.450.0700.05319.47
5.4.440.0130.06319.66
5.4.430.0100.05319.55
5.4.420.0530.05719.25
5.4.410.0900.04719.46
5.4.400.0170.05019.20
5.4.390.0230.05019.31
5.4.380.1030.06318.56
5.4.370.1030.05718.55
5.4.360.0830.05018.56
5.4.350.0770.07318.57
5.4.340.0930.06318.42
5.4.320.0900.05018.48
5.4.310.0970.04318.56
5.4.300.0870.06018.63
5.4.290.0870.05318.66
5.4.280.0900.05718.63
5.4.270.0870.06318.75
5.4.260.0930.05718.58
5.4.250.0870.07018.56
5.4.240.0970.05318.61
5.4.230.0870.05018.55
5.4.220.1030.04318.68
5.4.210.0870.05718.44
5.4.200.0870.06316.41
5.4.190.0800.06718.71
5.4.180.0800.06718.60
5.4.170.0870.05718.47
5.4.160.0900.05018.59
5.4.150.0930.04718.59
5.4.140.0930.04716.26
5.4.130.0800.05316.02
5.4.120.0800.05316.11
5.4.110.0800.05716.25
5.4.100.0870.05316.27
5.4.90.0830.05316.17
5.4.80.1000.06316.11
5.4.70.0770.05716.09
5.4.60.0930.06716.19
5.4.50.0830.05316.02
5.4.40.0770.05316.23
5.4.30.1030.05716.25
5.4.20.0730.06316.19
5.4.10.0800.05016.04
5.4.00.0830.05015.51
5.3.290.0930.05014.55
5.3.280.0870.05714.67
5.3.270.0870.05314.69
5.3.260.0930.04714.54
5.3.250.1070.06714.59
5.3.240.0800.06014.58
5.3.230.0870.05314.50
5.3.220.0870.05014.47
5.3.210.0830.06314.66
5.3.200.0870.04714.65
5.3.190.0730.06014.64
5.3.180.0870.05014.65
5.3.170.0870.04714.45
5.3.160.0800.05314.59
5.3.150.0800.05014.63
5.3.140.0970.07314.54
5.3.130.0930.04314.44
5.3.120.1000.08314.49
5.3.110.0800.05314.63
5.3.100.0800.05714.11
5.3.90.0870.04714.11
5.3.80.0870.05314.11
5.3.70.0800.05313.99
5.3.60.0770.06313.98
5.3.50.0800.05713.89
5.3.40.0830.04713.87
5.3.30.0730.06013.89
5.3.20.0770.05313.64
5.3.10.0800.04713.55
5.3.00.0870.04313.73
5.2.170.0570.05711.11
5.2.160.0930.04711.29
5.2.150.0730.05011.13
5.2.140.0670.04311.18
5.2.130.0670.03311.03
5.2.120.0570.03711.05
5.2.110.0570.04711.24
5.2.100.0670.03011.07
5.2.90.0670.03711.07
5.2.80.0730.03311.06
5.2.70.0730.04311.02
5.2.60.0630.06011.03
5.2.50.0730.04011.07
5.2.40.0670.05310.97
5.2.30.0430.04010.90
5.2.20.0530.04310.87
5.2.10.0430.05310.84
5.2.00.0600.03710.72
5.1.60.0500.03710.06
5.1.50.0370.03710.01
5.1.40.0430.03310.09
5.1.30.0570.04010.48
5.1.20.0600.04310.32
5.1.10.0500.03010.14
5.1.00.0500.04010.16
5.0.50.0300.0408.52
5.0.40.0200.0408.43
5.0.30.0270.0478.29
5.0.20.0370.0238.37
5.0.10.0370.0238.14
5.0.00.0270.0478.35
4.4.90.0270.0275.82
4.4.80.0230.0305.91
4.4.70.0300.0205.90
4.4.60.0200.0235.83
4.4.50.0300.0205.95
4.4.40.0330.0335.91
4.4.30.0300.0205.87
4.4.20.0300.0205.96
4.4.10.0200.0235.96
4.4.00.0200.0335.85
4.3.110.0230.0235.84
4.3.100.0300.0235.75
4.3.90.0330.0205.79
4.3.80.0230.0435.83
4.3.70.0330.0275.85
4.3.60.0200.0235.82
4.3.50.0330.0275.88
4.3.40.0270.0335.82
4.3.30.0130.0234.55
4.3.20.0130.0274.56
4.3.10.0100.0274.58
4.3.00.0070.0277.00

preferences:
50.2 ms | 400 KiB | 5 Q