3v4l.org

run code in 200+ PHP versions simultaneously
<?php function IsCasiPalindromo($str){ $count = 0; $idx1 = 0; $idx2 = strlen($str)-1; while($idx1 <= $idx2){ if($str[$idx1] != $str[$idx2]){ $count++; echo 'false'; } $idx1++; $idx2--; } return true; } echo IsCasiPalindromo("abccba") . '<br>'; echo IsCasiPalindromo("abccbx") . '<br>'; echo IsCasiPalindromo("abccfg") . '<br>';
based on K0PEU

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)
7.4.0rc40.0080.00614.83
7.4.0rc30.0060.00814.83
7.4.0rc20.0090.00614.97
7.4.0rc10.0100.00414.88
7.4.0beta40.0070.00814.92
7.4.0beta20.0070.00814.80
7.4.0beta10.0080.00914.92
7.4.0alpha30.0070.00914.97
7.4.0alpha20.0060.00915.15
7.4.0alpha10.0070.00815.06
7.3.100.0100.00514.84
7.3.90.0060.00814.89
7.3.80.0070.00814.78
7.3.70.0080.00714.76
7.3.60.0080.00714.78
7.3.50.0080.00614.88
7.3.40.0060.00814.72
7.3.30.0060.00814.82
7.3.20.0120.00514.89
7.3.10.0050.01014.90
7.3.00.0070.00914.82
7.2.230.0070.00915.15
7.2.220.0070.00715.20
7.2.210.0090.00815.02
7.2.200.0090.00715.03
7.2.190.0080.00815.10
7.2.180.0090.00715.09
7.2.170.0060.00815.04
7.2.160.0100.00615.00
7.2.150.0080.01015.09
7.2.140.0100.00815.13
7.2.130.0070.01015.06
7.2.120.0100.00715.03
7.2.110.0090.00815.01
7.2.100.0120.00815.14
7.2.90.0090.00915.17
7.2.80.0060.01115.11
7.2.70.0130.00615.17
7.2.60.0100.00915.49
7.2.50.0090.00815.23
7.2.40.0070.01015.11
7.2.30.0060.01015.23
7.2.20.0060.01015.13
7.2.10.0090.00815.11
7.2.00.0100.00815.80
7.1.320.0070.00913.89
7.1.310.0120.00613.95
7.1.300.0080.00713.95
7.1.290.0110.00514.06
7.1.280.0060.00813.98
7.1.270.0080.00813.91
7.1.260.0110.00513.93
7.1.250.0080.00614.08
7.1.240.0090.00913.95
7.1.230.0110.00713.89
7.1.220.0080.01013.83
7.1.210.0260.00613.89
7.1.200.0080.00714.04
7.1.190.0110.00613.71
7.1.180.0120.00513.80
7.1.170.0080.01013.72
7.1.160.0150.00413.89
7.1.150.0110.00713.77
7.1.140.0090.00713.84
7.1.130.0120.00613.88
7.1.120.0100.00814.03
7.1.110.0090.00613.93
7.1.100.0110.00513.92
7.1.90.0090.00913.82
7.1.80.0120.00513.98
7.1.70.0110.00614.54
7.1.60.0110.00614.90
7.1.50.0090.00813.82
7.1.40.0070.00913.77
7.1.30.0090.00913.76
7.1.20.0100.00713.89
7.1.10.0090.00913.78
7.1.00.0100.01715.27
7.0.330.0080.00813.38
7.0.320.0110.00713.47
7.0.310.0120.00713.35
7.0.300.0120.00613.47
7.0.290.0110.00813.44
7.0.280.0130.00513.44
7.0.270.0090.00813.49
7.0.260.0110.00513.46
7.0.250.0100.00813.59
7.0.240.0080.01113.45
7.0.230.0280.00813.55
7.0.220.0080.00813.53
7.0.210.0090.00913.46
7.0.200.0130.00513.69
7.0.190.0120.00513.51
7.0.180.0120.00413.47
7.0.170.0070.01113.41
7.0.160.0120.00413.43
7.0.150.0100.00813.48
7.0.140.0100.00713.49
7.0.130.0110.00713.53
7.0.120.0100.00813.46
7.0.110.0110.00813.50
7.0.100.0140.00413.44
7.0.90.0110.00513.51
7.0.80.0090.00813.38
7.0.70.0240.01514.51
7.0.60.0220.01414.63
7.0.50.0200.02414.63
7.0.40.0210.01414.64
7.0.30.0180.01914.69
7.0.20.0230.01614.71
7.0.10.0200.01714.65
7.0.00.0220.01714.69
5.6.400.0080.01014.22
5.6.390.0080.00814.17
5.6.380.0110.00814.21
5.6.370.0100.00814.38
5.6.360.0130.00514.29
5.6.350.0110.00814.13
5.6.340.0090.00914.25
5.6.330.0110.00814.18
5.6.320.0100.00814.24
5.6.310.0090.00814.43
5.6.300.0140.00314.27
5.6.290.0110.00514.24
5.6.280.0130.01515.52
5.6.270.0100.00814.15
5.6.260.0100.00614.37
5.6.250.0090.00714.20
5.6.240.0120.00514.21
5.6.230.0090.00914.16
5.6.220.0150.01915.29
5.6.210.0150.02015.35
5.6.200.0210.01915.52
5.6.190.0190.01515.38
5.6.180.0210.01815.45
5.6.170.0180.01615.48
5.6.160.0210.01615.37
5.6.150.0200.01515.44
5.6.140.0160.01915.43
5.6.130.0180.01915.39
5.6.120.0100.01815.35
5.6.110.0110.01915.43
5.6.100.0190.02115.36
5.6.90.0150.01915.36
5.6.80.0220.01315.18
5.6.70.0170.02015.20
5.6.60.0190.01915.30
5.6.50.0170.02015.26
5.6.40.0180.01815.27
5.6.30.0160.01715.24
5.6.20.0150.01915.21
5.6.10.0190.01715.14
5.6.00.0210.02115.26
5.5.380.0100.00614.28
5.5.370.0100.00714.12
5.5.360.0190.01715.29
5.5.350.0130.02215.38
5.5.340.0220.01515.29
5.5.330.0160.01915.46
5.5.320.0210.01615.30
5.5.310.0200.01415.38
5.5.300.0190.01715.39
5.5.290.0220.01415.29
5.5.280.0070.02015.25
5.5.270.0200.01615.29
5.5.260.0160.01915.37
5.5.250.0190.01615.17
5.5.240.0210.01415.25
5.5.230.0200.01415.24
5.5.220.0190.01415.18
5.5.210.0200.01515.19
5.5.200.0170.01715.13
5.5.190.0170.01715.15
5.5.180.0180.01615.29
5.5.170.0120.01014.22
5.5.160.0210.01415.09
5.5.150.0180.01615.10
5.5.140.0190.01415.18
5.5.130.0180.01615.22
5.5.120.0230.01515.17
5.5.110.0170.01515.24
5.5.100.0160.01615.12
5.5.90.0170.01515.22
5.5.80.0170.01715.09
5.5.70.0140.02015.21
5.5.60.0170.01515.22
5.5.50.0180.01615.14
5.5.40.0180.01515.24
5.5.30.0200.01415.05
5.5.20.0160.01815.31
5.5.10.0120.02115.19
5.5.00.0180.01815.07
5.4.450.0090.00311.08
5.4.440.0020.01110.95
5.4.430.0060.00510.91
5.4.420.0090.00310.96
5.4.410.0050.00610.86
5.4.400.0030.00810.92
5.4.390.0050.00610.83
5.4.380.0040.00811.01
5.4.370.0070.00511.01
5.4.360.0050.00711.13
5.4.350.0080.00511.00
5.4.340.0050.00611.02
5.4.330.0070.00810.96
5.4.320.0060.00610.80
5.4.310.0070.00610.78
5.4.300.0060.00710.90
5.4.290.0040.00811.05
5.4.280.0090.00310.96
5.4.270.0030.00911.04
5.4.260.0070.00410.80
5.4.250.0040.00810.97
5.4.240.0040.00710.94
5.4.230.0050.00810.79
5.4.220.0040.00910.98
5.4.210.0070.00610.97
5.4.200.0090.00711.22
5.4.190.0050.00910.78
5.4.180.0030.00910.83
5.4.170.0060.00411.06
5.4.160.0040.00710.84
5.4.150.0070.00411.00
5.4.140.0070.00410.96
5.4.130.0050.00711.07
5.4.120.0070.00510.88
5.4.110.0030.00910.88
5.4.100.0080.00411.10
5.4.90.0060.00711.03
5.4.80.0110.00211.00
5.4.70.0080.00710.83
5.4.60.0080.00611.00
5.4.50.0090.00310.98
5.4.40.0100.00510.95
5.4.30.0090.00811.06
5.4.20.0100.00610.96
5.4.10.0060.00810.84
5.4.00.0050.01011.00
5.3.290.0030.00910.56
5.3.280.0110.00510.40
5.3.270.0080.00310.44
5.3.260.0110.00210.55
5.3.250.0060.00810.50
5.3.240.0060.00610.41
5.3.230.0100.00410.46
5.3.220.0080.00510.48
5.3.210.0100.00110.45
5.3.200.0080.00310.51
5.3.190.0060.00710.45
5.3.180.0040.01010.63
5.3.170.0120.00310.55
5.3.160.0050.00810.52
5.3.150.0100.00410.60
5.3.140.0080.00910.63
5.3.130.0080.00610.38
5.3.120.0120.00410.48
5.3.110.0060.00810.54
5.3.100.0110.00510.47
5.3.90.0060.00910.47
5.3.80.0080.00710.38
5.3.70.0070.00710.46
5.3.60.0130.00110.51
5.3.50.0080.00510.41
5.3.40.0110.00410.49
5.3.30.0070.00710.59
5.3.20.0080.00610.54
5.3.10.0120.00310.22
5.3.00.0090.00510.26
5.2.170.0040.0089.85
5.2.160.0060.0059.89
5.2.150.0050.0069.87
5.2.140.0080.0059.85
5.2.130.0070.0069.85
5.2.120.0040.0079.85
5.2.110.0080.0049.85
5.2.100.0110.0039.85
5.2.90.0060.0099.85
5.2.80.0120.0029.85
5.2.70.0050.0079.85
5.2.60.0060.0059.85
5.2.50.0060.0069.85
5.2.40.0030.0099.85
5.2.30.0050.0069.85
5.2.20.0080.0069.85
5.2.10.0060.0069.85
5.2.00.0060.0059.85
5.1.60.0050.0069.85
5.1.50.0030.0079.85
5.1.40.0090.0079.85
5.1.30.0040.0069.85
5.1.20.0040.0069.85
5.1.10.0040.0079.85
5.1.00.0080.0019.85
5.0.50.0050.0049.85
5.0.40.0060.0039.85
5.0.30.0070.0019.85
5.0.20.0030.0069.85
5.0.10.0050.0049.85
5.0.00.0030.0059.85
4.4.90.0080.0009.85
4.4.80.0050.0039.85
4.4.70.0030.0059.85
4.4.60.0040.0049.85
4.4.50.0010.0079.85
4.4.40.0040.0039.85
4.4.30.0050.0029.85
4.4.20.0040.0039.85
4.4.10.0050.0029.85
4.4.00.0030.0049.85
4.3.110.0020.0059.85
4.3.100.0070.0009.85
4.3.90.0000.0079.85
4.3.80.0050.0029.85
4.3.70.0030.0039.85
4.3.60.0030.0049.85
4.3.50.0020.0059.85
4.3.40.0030.0039.85
4.3.30.0030.0049.85
4.3.20.0050.0019.85
4.3.10.0030.0049.85
4.3.00.0020.0079.85