3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xyz[]="a"; var_dump($xyz); if($xyz != '') { echo "xyz is not empty! good to go!\n"; $pw1 = 'my cool password keep it secrete please'; $pw2 = 'some other password'; $abc = strcmp($xyz, $pw1); if ($abc == 0) { echo "yes '$pw1' is the same as '$xyz'\n"; } $def = strcmp($xyz, $pw2); if ($def == 0) { echo "yep '$pw2' is the same as '$xyz'\n"; } $ghi = strcmp($pw1, $pw2); if ($ghi != 0) { echo "and yet '$pw1' isn't the same as '$pw2'\n"; } else {echo "i am strcmp, and i declare that '$pw1' is the same as '$pw2'!!\n"; } $jkl = strcmp($xyz, $xyz); echo "jkl = $jkl\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.0060.00916.63
8.3.50.0110.00522.84
8.3.40.0110.00418.79
8.3.30.0100.00319.00
8.3.20.0040.00420.16
8.3.10.0080.00023.56
8.3.00.0000.00919.38
8.2.180.0150.00416.50
8.2.170.0070.00722.96
8.2.160.0120.00320.35
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0030.00819.29
8.2.110.0140.00720.35
8.2.100.0070.00418.16
8.2.90.0000.00819.21
8.2.80.0000.00817.97
8.2.70.0040.00417.88
8.2.60.0040.00417.68
8.2.50.0000.00918.07
8.2.40.0110.00018.34
8.2.30.0040.00418.02
8.2.20.0050.00217.69
8.2.10.0030.00618.00
8.2.00.0040.00417.86
8.1.280.0160.00025.92
8.1.270.0060.00323.96
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0100.00023.82
8.1.230.0070.00319.22
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00917.23
8.1.190.0030.00617.35
8.1.180.0000.00818.10
8.1.170.0040.00418.64
8.1.160.0040.00422.01
8.1.150.0040.00418.88
8.1.140.0000.00717.36
8.1.130.0000.00817.74
8.1.120.0030.00417.43
8.1.110.0000.00717.42
8.1.100.0000.00717.44
8.1.90.0030.00317.34
8.1.80.0000.00717.46
8.1.70.0030.00317.40
8.1.60.0090.00017.54
8.1.50.0050.00317.48
8.1.40.0040.00417.49
8.1.30.0030.00617.51
8.1.20.0040.00417.56
8.1.10.0000.00717.52
8.1.00.0050.00317.39
8.0.300.0050.00318.77
8.0.290.0040.00416.88
8.0.280.0000.00718.47
8.0.270.0000.00717.19
8.0.260.0030.00317.30
8.0.250.0030.00316.98
8.0.240.0030.00616.90
8.0.230.0000.00717.00
8.0.220.0030.00516.90
8.0.210.0030.00316.91
8.0.200.0000.00716.93
8.0.190.0000.00816.89
8.0.180.0040.00816.96
8.0.170.0000.00816.88
8.0.160.0040.00416.89
8.0.150.0000.00816.95
8.0.140.0080.00016.84
8.0.130.0030.00313.37
8.0.120.0080.00016.95
8.0.110.0040.00416.98
8.0.100.0000.00716.91
8.0.90.0090.00016.80
8.0.80.0000.01716.92
8.0.70.0040.00416.97
8.0.60.0040.00416.95
8.0.50.0070.00016.84
8.0.30.0120.00917.17
8.0.20.0060.01617.40
8.0.10.0000.00816.97
8.0.00.0100.01116.79
7.4.330.0050.00015.00
7.4.320.0060.00016.42
7.4.300.0000.00616.51
7.4.290.0000.00716.64
7.4.280.0050.00516.56
7.4.270.0030.00316.39
7.4.260.0030.00616.46
7.4.250.0000.00816.49
7.4.240.0030.00516.55
7.4.230.0000.00716.41
7.4.220.0140.00416.59
7.4.210.0100.00916.63
7.4.200.0000.00716.70
7.4.160.0100.00516.61
7.4.150.0150.00317.40
7.4.140.0090.01017.86
7.4.130.0120.00716.40
7.4.120.0030.01316.60
7.4.110.0160.00616.45
7.4.100.0040.01416.70
7.4.90.0130.00616.53
7.4.80.0100.00719.39
7.4.70.0070.01016.68
7.4.60.0100.00716.40
7.4.50.0090.00616.50
7.4.40.0140.00616.25
7.4.30.0080.01116.05
7.4.20.0090.01216.22
7.4.10.0060.01316.14
7.4.00.0100.00515.90
7.3.330.0030.00313.37
7.3.320.0030.00313.31
7.3.310.0030.00316.25
7.3.300.0040.00416.39
7.3.290.0040.00416.34
7.3.280.0060.00916.40
7.3.270.0070.01817.40
7.3.260.0040.01416.27
7.3.250.0060.01116.32
7.3.240.0140.00316.33
7.3.230.0100.00616.51
7.3.210.0070.01416.38
7.3.200.0070.01019.39
7.3.190.0030.01416.28
7.3.180.0100.00716.19
7.3.170.0100.00816.41
7.3.160.0060.01316.42
7.3.150.0080.01116.31
7.3.140.0090.00916.44
7.3.130.0050.01416.03
7.3.120.0110.00716.52
7.3.110.0100.00616.15
7.3.100.0060.01016.36
7.3.90.0060.01016.17
7.3.80.0120.00416.09
7.3.70.0000.01516.18
7.3.60.0040.01116.36
7.3.50.0030.01216.17
7.3.40.0120.00616.18
7.3.30.0100.00716.29
7.3.20.0060.01216.23
7.3.10.0070.01016.33
7.3.00.0100.01016.41
7.2.330.0040.01816.69
7.2.320.0170.00016.73
7.2.310.0190.00016.54
7.2.300.0080.01116.52
7.2.290.0040.01516.57
7.2.280.0130.00716.38
7.2.270.0120.00616.23
7.2.260.0080.01216.29
7.2.250.0040.01416.59
7.2.240.0140.00316.27
7.2.230.0040.01416.46
7.2.220.0100.00716.20
7.2.210.0060.00916.42
7.2.200.0060.01016.28
7.2.190.0040.01216.47
7.2.180.0110.00516.14
7.2.170.0150.00816.31
7.2.160.0060.01216.47
7.2.150.0030.01416.36
7.2.140.0100.00716.39
7.2.130.0070.01016.41
7.2.120.0030.01416.36
7.2.110.0130.00916.53
7.2.100.0140.00416.32
7.2.90.0130.00316.52
7.2.80.0050.01516.47
7.2.70.0100.00716.56
7.2.60.0110.00616.75
7.2.50.0040.01316.60
7.2.40.0140.00316.41
7.2.30.0070.01116.62
7.2.20.0090.01516.41
7.2.10.0240.00016.54
7.2.00.0080.00518.08
7.1.330.0100.01015.34
7.1.320.0100.00615.45
7.1.310.0060.01315.25
7.1.300.0040.01215.24
7.1.290.0210.00515.12
7.1.280.0030.01315.18
7.1.270.0170.00915.29
7.1.260.0060.01215.23
7.1.250.0150.00015.32
7.1.240.0070.00715.20
7.1.230.0090.00615.21
7.1.220.0110.00615.31
7.1.210.0040.01115.12
7.1.200.0050.00715.46
7.1.190.0060.01115.33
7.1.180.0060.01215.21
7.1.170.0110.00515.37
7.1.160.0140.00615.44
7.1.150.0080.00815.42
7.1.140.0130.00915.45
7.1.130.0160.00415.38
7.1.120.0000.01515.22
7.1.110.0050.01015.23
7.1.100.0060.00916.89
7.1.90.0130.00315.34
7.1.80.0160.00015.22
7.1.70.0080.00816.17
7.1.60.0230.00517.43
7.1.50.0050.01716.15
7.1.40.0180.00615.30
7.1.30.0040.01115.43
7.1.20.0160.00015.38
7.1.10.0090.00615.24
7.1.00.0030.04418.81
7.0.330.0240.00014.76
7.0.320.0120.00314.92
7.0.310.0120.00415.00
7.0.300.0030.01314.98
7.0.290.0140.01114.89
7.0.280.0090.00614.86
7.0.270.0140.00314.81
7.0.260.0060.00914.98
7.0.250.0080.00814.98
7.0.240.0060.01014.91
7.0.230.0000.01615.04
7.0.220.0100.00514.73
7.0.210.0080.00814.81
7.0.200.0090.00715.73
7.0.190.0180.00314.89
7.0.180.0070.00814.91
7.0.170.0160.00014.97
7.0.160.0060.01115.09
7.0.150.0070.01414.80
7.0.140.0090.03918.52
7.0.130.0090.00614.86
7.0.120.0060.00915.03
7.0.110.0060.00914.91
7.0.100.0120.02517.37
7.0.90.0170.04317.42
7.0.80.0140.04517.47
7.0.70.0120.04517.45
7.0.60.0190.03817.50
7.0.50.0160.04317.65
7.0.40.0080.02617.37
7.0.30.0120.03817.56
7.0.20.0060.04817.40
7.0.10.0090.03017.45
7.0.00.0100.04617.56
5.6.400.0040.01415.74
5.6.390.0060.01215.71
5.6.380.0090.00915.81
5.6.370.0080.01015.84
5.6.360.0090.00915.71
5.6.350.0070.01315.70
5.6.340.0110.00715.67
5.6.330.0100.01015.67
5.6.320.0140.00415.89
5.6.310.0170.00015.71
5.6.300.0040.01515.75
5.6.290.0110.00715.84
5.6.280.0090.03918.31
5.6.270.0130.00515.80
5.6.260.0130.00715.36
5.6.250.0080.04518.13
5.6.240.0050.04418.20
5.6.230.0190.03818.23
5.6.220.0090.04218.14
5.6.210.0040.04718.12
5.6.200.0080.02318.29
5.6.190.0090.04618.29
5.6.180.0090.04718.32
5.6.170.0120.04218.43
5.6.160.0100.04818.38
5.6.150.0060.05218.27
5.6.140.0060.04118.46
5.6.130.0080.04718.26
5.6.120.0030.05118.38
5.6.110.0090.04418.43
5.6.100.0090.04618.38
5.6.90.0120.04218.36
5.6.80.0140.02618.09
5.6.70.0060.04418.24
5.6.60.0050.04818.08
5.6.50.0110.04018.00
5.6.40.0060.04518.03
5.6.30.0130.03717.94
5.6.20.0070.04218.06
5.6.10.0070.04818.04
5.6.00.0050.04718.06
5.5.380.0090.04318.18
5.5.370.0120.04218.10
5.5.360.0120.04518.08
5.5.350.0110.04417.91
5.5.340.0050.03918.20
5.5.330.0130.03718.31
5.5.320.0080.04218.24
5.5.310.0130.03018.25
5.5.300.0130.04018.18
5.5.290.0050.04718.29
5.5.280.0070.05018.24
5.5.270.0080.03018.14
5.5.260.0150.03718.21
5.5.250.0080.04317.92
5.5.240.0100.03817.82
5.5.230.0070.04517.90
5.5.220.0070.04618.06
5.5.210.0100.02517.87
5.5.200.0050.04817.76
5.5.190.0130.04017.84
5.5.180.0100.04317.94
5.5.170.0030.01515.63
5.5.160.0090.04617.93
5.5.150.0170.03618.01
5.5.140.0090.03817.94
5.5.130.0130.03318.02
5.5.120.0150.02117.97
5.5.110.0080.04617.94
5.5.100.0050.04718.00
5.5.90.0060.04417.80
5.5.80.0050.04917.68
5.5.70.0100.04617.71
5.5.60.0130.04317.73
5.5.50.0140.03417.89
5.5.40.0110.02217.72
5.5.30.0120.03917.75
5.5.20.0130.04117.79
5.5.10.0110.03517.82
5.5.00.0080.04517.87
5.4.450.0100.04015.99
5.4.440.0090.04015.84
5.4.430.0100.03715.91
5.4.420.0020.04615.86
5.4.410.0110.03715.87
5.4.400.0040.04615.82
5.4.390.0130.03515.73
5.4.380.0030.04315.70
5.4.370.0080.03515.76
5.4.360.0080.03315.75
5.4.350.0000.03315.76
5.4.340.0070.03815.80
5.4.330.0000.01212.54
5.4.320.0050.04115.81
5.4.310.0070.02615.83
5.4.300.0100.03815.58
5.4.290.0080.03615.63
5.4.280.0100.03815.81
5.4.270.0090.03415.73
5.4.260.0070.04115.77
5.4.250.0050.03815.61
5.4.240.0070.04015.69
5.4.230.0070.02515.68
5.4.220.0120.03715.72
5.4.210.0070.03815.77
5.4.200.0060.04115.67
5.4.190.0090.03615.88
5.4.180.0030.03015.83
5.4.170.0060.03515.54
5.4.160.0090.04015.69
5.4.150.0070.03615.81
5.4.140.0080.04014.38
5.4.130.0050.04014.34
5.4.120.0070.03514.41
5.4.110.0030.03114.44
5.4.100.0080.03714.51
5.4.90.0030.02514.37
5.4.80.0070.03114.30
5.4.70.0120.03314.35
5.4.60.0000.04514.31
5.4.50.0030.03714.33
5.4.40.0070.03814.48
5.4.30.0030.02814.38
5.4.20.0130.03314.43
5.4.10.0070.03714.40
5.4.00.0060.04113.94
5.3.290.0060.04113.92
5.3.280.0100.03713.80
5.3.270.0060.04313.84
5.3.260.0060.04413.80
5.3.250.0080.03813.83
5.3.240.0070.02213.73
5.3.230.0060.02313.88
5.3.220.0100.03813.82
5.3.210.0110.03913.75
5.3.200.0030.04213.79
5.3.190.0040.04413.72
5.3.180.0000.02813.90
5.3.170.0050.02013.85
5.3.160.0060.03813.89
5.3.150.0070.02513.78
5.3.140.0120.03313.80
5.3.130.0090.02413.78
5.3.120.0030.02513.83
5.3.110.0110.02813.88
5.3.100.0080.03713.61
5.3.90.0030.04013.43
5.3.80.0060.04213.40
5.3.70.0080.02813.36
5.3.60.0100.03813.47
5.3.50.0070.03613.52
5.3.40.0020.04713.44
5.3.30.0070.02713.32
5.3.20.0080.03013.39
5.3.10.0090.03313.12
5.3.00.0050.03513.09
5.2.170.0060.03512.00
5.2.160.0070.01811.99
5.2.150.0030.02112.02
5.2.140.0060.03412.08
5.2.130.0070.01911.94
5.2.120.0030.02011.96
5.2.110.0100.02811.98
5.2.100.0050.03412.02
5.2.90.0020.03411.94
5.2.80.0020.03711.94
5.2.70.0070.02011.93
5.2.60.0060.03111.93
5.2.50.0110.02811.89
5.2.40.0080.03011.95
5.2.30.0000.02611.95
5.2.20.0030.03311.90
5.2.10.0030.03311.91
5.2.00.0060.03411.85
5.1.60.0000.03611.46
5.1.50.0070.01311.59
5.1.40.0020.03111.49
5.1.30.0030.03111.64
5.1.20.0030.03111.55
5.1.10.0070.02411.54
5.1.00.0090.01311.59
5.0.50.0020.02811.04
5.0.40.0020.02011.04
5.0.30.0030.03511.04
5.0.20.0040.02011.04
5.0.10.0060.01811.04
5.0.00.0070.03111.04
4.4.90.0020.01911.04
4.4.80.0030.01811.04
4.4.70.0030.02011.04
4.4.60.0020.01511.04
4.4.50.0030.01511.04
4.4.40.0020.02311.04
4.4.30.0030.01711.04
4.4.20.0060.01311.04
4.4.10.0030.01511.04
4.4.00.0020.02511.04
4.3.110.0020.02011.04
4.3.100.0010.02011.04
4.3.90.0050.01611.04
4.3.80.0020.02811.04
4.3.70.0030.01111.04
4.3.60.0030.01611.04
4.3.50.0020.01611.04
4.3.40.0000.02311.04
4.3.30.0010.01811.04
4.3.20.0010.01111.04
4.3.10.0010.01011.04
4.3.00.0010.01311.04

preferences:
38.94 ms | 401 KiB | 5 Q