3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Example: chicken -> cnekcih $s = 'chicken'; echo substr($s, 0, 1) . strrev(substr($s, 1)); assert($s == 'cnekcih');

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.0100.01018.96
8.3.30.0040.01118.57
8.3.20.0030.00620.21
8.3.10.0070.00023.48
8.3.00.0040.00719.63
8.2.170.0140.00322.96
8.2.160.0070.00720.18
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0060.00317.75
8.2.110.0060.00322.06
8.2.100.0090.00317.75
8.2.90.0000.00719.08
8.2.80.0060.00317.97
8.2.70.0040.00417.59
8.2.60.0040.00417.80
8.2.50.0030.00618.07
8.2.40.0000.00819.38
8.2.30.0040.00417.95
8.2.20.0040.00417.58
8.2.10.0020.00517.92
8.2.00.0000.00718.11
8.1.270.0060.01222.15
8.1.260.0070.00026.35
8.1.250.0030.00528.09
8.1.240.0030.00622.46
8.1.230.0040.00817.42
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0070.00317.35
8.1.190.0000.00817.35
8.1.180.0000.00718.10
8.1.170.0000.00818.65
8.1.160.0040.00421.97
8.1.150.0000.00718.88
8.1.140.0000.00817.45
8.1.130.0080.00017.64
8.1.120.0040.00417.37
8.1.110.0040.00417.49
8.1.100.0000.00717.41
8.1.90.0050.00217.35
8.1.80.0000.00717.48
8.1.70.0030.00317.40
8.1.60.0040.00417.58
8.1.50.0000.00717.51
8.1.40.0020.00517.50
8.1.30.0090.00017.61
8.1.20.0000.00717.69
8.1.10.0000.00717.55
8.1.00.0070.00017.53
8.0.300.0000.00818.77
8.0.290.0050.00316.88
8.0.280.0000.00718.35
8.0.270.0000.00717.14
8.0.260.0060.00018.32
8.0.250.0000.00717.03
8.0.240.0030.00617.05
8.0.230.0050.00517.05
8.0.220.0030.00316.91
8.0.210.0000.00716.93
8.0.200.0030.00316.90
8.0.190.0000.00717.01
8.0.180.0050.00316.89
8.0.170.0000.00816.98
8.0.160.0000.00717.02
8.0.150.0030.00316.87
8.0.140.0000.01016.79
8.0.130.0030.00313.37
8.0.120.0080.00016.90
8.0.110.0040.00416.94
8.0.100.0040.00316.95
8.0.90.0040.00416.89
8.0.80.0120.00916.91
8.0.70.0070.00016.83
8.0.60.0040.00416.89
8.0.50.0000.00717.06
8.0.30.0070.01017.21
8.0.20.0110.01217.40
8.0.10.0000.00717.07
8.0.00.0070.01216.78
7.4.330.0030.00315.08
7.4.320.0060.00016.49
7.4.300.0000.00816.63
7.4.290.0030.00616.56
7.4.280.0000.00716.52
7.4.270.0000.00616.60
7.4.260.0030.00316.50
7.4.250.0000.00716.44
7.4.240.0050.00216.58
7.4.230.0070.00016.39
7.4.220.0070.01116.71
7.4.210.0060.01216.60
7.4.200.0000.00716.50
7.4.160.0030.01016.49
7.4.150.0110.01117.40
7.4.140.0100.01117.86
7.4.130.0110.00916.54
7.4.120.0090.00916.43
7.4.110.0100.00716.64
7.4.100.0090.00916.67
7.4.90.0050.01816.50
7.4.80.0100.00619.39
7.4.70.0000.01616.43
7.4.60.0060.00916.58
7.4.50.0040.00416.42
7.4.40.0100.00716.68
7.4.30.0110.01116.70
7.4.00.0140.00314.88
7.3.330.0050.00013.30
7.3.320.0030.00313.25
7.3.310.0000.00716.26
7.3.300.0030.00316.31
7.3.290.0060.00016.37
7.3.280.0090.00716.30
7.3.270.0080.01217.40
7.3.260.0070.01016.50
7.3.250.0120.00816.34
7.3.240.0060.01216.28
7.3.230.0070.01016.45
7.3.210.0100.00716.52
7.3.200.0090.01216.44
7.3.190.0150.00016.54
7.3.180.0130.00316.23
7.3.170.0030.01616.52
7.3.160.0100.00716.30
7.2.330.0110.00616.46
7.2.320.0210.00316.40
7.2.310.0140.00316.47
7.2.300.0070.01116.42
7.2.290.0060.01216.65
7.2.60.0060.00916.88
7.2.00.0040.00419.52
7.1.200.0040.01115.75
7.1.100.0000.01118.05
7.1.70.0000.00716.87
7.1.60.0100.01319.13
7.1.50.0060.01316.86
7.1.00.0070.07322.57
7.0.200.0200.00014.93
7.0.100.0130.03319.93
7.0.90.0230.08019.94
7.0.80.0030.07020.02
7.0.70.0100.06319.88
7.0.60.0230.07019.99
7.0.50.0270.08020.26
7.0.40.0130.08320.14
7.0.30.0000.06020.10
7.0.20.0070.04720.05
7.0.10.0130.08020.12
7.0.00.0070.07720.14
5.6.280.0070.07020.98
5.6.250.0030.06320.77
5.6.240.0100.07020.66
5.6.230.0070.06320.70
5.6.220.0030.04720.57
5.6.210.0170.06020.55
5.6.200.0030.04721.07
5.6.190.0130.07721.05
5.6.180.0030.07020.92
5.6.170.0070.04721.07
5.6.160.0030.08320.95
5.6.150.0130.07321.04
5.6.140.0070.07721.00
5.6.130.0000.04720.95
5.6.120.0170.08020.94
5.6.110.0130.08021.02
5.6.100.0070.08021.15
5.6.90.0070.05020.97
5.6.80.0030.07020.51
5.6.70.0100.03320.45
5.6.60.0030.04320.39
5.6.50.0000.04320.29
5.6.40.0070.03720.48
5.6.30.0000.04020.39
5.6.20.0030.04320.51
5.6.10.0030.04320.28
5.6.00.0030.04020.39
5.5.380.0170.03320.45
5.5.370.0030.08020.41
5.5.360.0200.07320.35
5.5.350.0070.07020.38
5.5.340.0030.05720.88
5.5.330.0200.04320.88
5.5.320.0100.07020.91
5.5.310.0030.08320.87
5.5.300.0130.08720.83
5.5.290.0100.04020.75
5.5.280.0030.06020.91
5.5.270.0030.05320.75
5.5.260.0070.05320.81
5.5.250.0100.07720.66
5.5.240.0030.04020.27
5.5.230.0000.04320.29
5.5.220.0070.04020.19
5.5.210.0000.04320.29
5.5.200.0100.03320.27
5.5.190.0100.03320.05
5.5.180.0100.03319.95
5.5.160.0070.04320.16
5.5.150.0030.04320.23
5.5.140.0100.05319.98
5.5.130.0030.04320.22
5.5.120.0070.06320.22
5.5.110.0030.07020.16
5.5.100.0130.07020.05
5.5.90.0000.08320.09
5.5.80.0130.06020.05
5.5.70.0100.03320.00
5.5.60.0070.05019.93
5.5.50.0030.04319.95
5.5.40.0000.04020.14
5.5.30.0130.03720.13
5.5.20.0070.03320.13
5.5.10.0070.03720.10
5.5.00.0070.04020.06
5.4.450.0070.06719.39
5.4.440.0030.08719.23
5.4.430.0100.07719.55
5.4.420.0030.06019.35
5.4.410.0070.07319.21
5.4.400.0070.03318.98
5.4.390.0070.04319.02
5.4.380.0100.03319.23
5.4.370.0030.03719.06
5.4.360.0000.04318.95
5.4.350.0030.03718.99
5.4.340.0030.03718.79
5.4.320.0000.04018.98
5.4.310.0030.03719.14
5.4.300.0030.04318.83
5.4.290.0070.04319.23
5.4.280.0030.04319.09
5.4.270.0070.03319.14
5.4.260.0070.06718.98
5.4.250.0130.07319.08
5.4.240.0130.02719.22
5.4.230.0030.03319.15
5.4.220.0070.03718.93
5.4.210.0030.04019.13
5.4.200.0030.03719.12
5.4.190.0070.03319.05
5.4.180.0000.04018.95
5.4.170.0000.04318.93
5.4.160.0000.03719.15
5.4.150.0070.03719.04
5.4.140.0030.03716.13
5.4.130.0030.03716.05
5.4.120.0070.03316.36
5.4.110.0030.03716.43
5.4.100.0100.03016.30
5.4.90.0100.03016.30
5.4.80.0030.04016.41
5.4.70.0130.02716.30
5.4.60.0070.03716.21
5.4.50.0000.03716.40
5.4.40.0070.03316.36
5.4.30.0030.03316.30
5.4.20.0100.02316.20
5.4.10.0030.03716.30
5.4.00.0030.04015.81

preferences:
50.17 ms | 400 KiB | 5 Q