3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'Hello World'; $strArray=explode(" ", $str); $strArray=array_reverse($strArray); $str=implode($strArray, " "); echo $str;

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.140.0050.00516.68
8.3.130.0030.01218.28
8.3.120.0090.00618.87
8.3.110.0060.00320.94
8.3.100.0100.00016.70
8.3.90.0000.00826.77
8.3.80.0040.00418.30
8.3.70.0040.01418.31
8.3.60.0070.01516.63
8.3.50.0100.00724.38
8.3.40.0160.00621.00
8.3.30.0110.00418.70
8.3.20.0000.00721.91
8.3.10.0040.00421.98
8.3.00.0040.00422.37
8.2.250.0040.00416.98
8.2.240.0030.00716.93
8.2.230.0060.00322.58
8.2.220.0040.00424.06
8.2.210.0060.00326.77
8.2.200.0030.00616.63
8.2.190.0090.00616.63
8.2.180.0100.00716.75
8.2.170.0120.00322.96
8.2.160.0030.01019.22
8.2.150.0060.00324.18
8.2.140.0050.00224.66
8.2.130.0050.00326.16
8.2.120.0040.00426.16
8.2.110.0070.00319.21
8.2.100.0110.00517.78
8.2.90.0040.00417.88
8.2.80.0050.00318.73
8.2.70.0060.00317.91
8.2.60.0070.00018.09
8.2.50.0060.00319.46
8.2.40.0000.00920.93
8.2.30.0040.00419.20
8.2.20.0040.00417.95
8.2.10.0000.00819.18
8.2.00.0070.00019.32
8.1.300.0110.00419.84
8.1.290.0060.00330.84
8.1.280.0170.00025.92
8.1.270.0080.00022.12
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00719.20
8.1.230.0000.01117.64
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0090.00017.09
8.1.190.0050.00317.23
8.1.180.0030.00618.97
8.1.170.0080.00018.57
8.1.160.0030.00619.07
8.1.150.0040.00418.86
8.1.140.0000.00717.37
8.1.130.0070.00017.42
8.1.120.0050.00317.29
8.1.110.0000.00717.32
8.1.100.0000.00817.33
8.1.90.0030.00417.43
8.1.80.0060.00317.36
8.1.70.0000.00817.37
8.1.60.0070.00017.57
8.1.50.0030.00517.49
8.1.40.0030.00517.52
8.1.30.0000.00817.56
8.1.20.0040.00417.47
8.1.10.0040.00417.63
8.1.00.0000.00817.52
8.0.300.0050.00318.77
8.0.290.0080.00016.63
8.0.280.0000.00718.37
8.0.270.0080.00017.19
8.0.260.0070.00016.70
8.0.250.0060.00016.96
8.0.240.0060.00016.94
8.0.230.0030.00316.84
8.0.220.0040.00416.91
8.0.210.0040.00416.90
8.0.200.0000.00616.81
8.0.190.0000.00816.90
8.0.180.0030.00616.83
8.0.170.0030.00916.80
8.0.160.0000.00816.87
8.0.150.0040.00316.89
8.0.140.0030.00616.73
8.0.130.0000.00613.22
8.0.120.0040.00416.75
8.0.110.0050.00216.77
8.0.100.0040.00416.73
8.0.90.0000.00916.69
8.0.80.0070.00716.91
8.0.70.0070.00016.75
8.0.60.0040.00416.76
8.0.50.0050.00216.94
8.0.30.0040.01217.26
8.0.20.0060.01217.01
8.0.10.0000.00816.90
8.0.00.0140.00416.57
7.4.330.0020.00215.55
7.4.320.0030.00316.51
7.4.300.0000.00816.50
7.4.290.0070.00016.35
7.4.280.0000.00816.38
7.4.270.0040.00416.45
7.4.260.0030.00316.56
7.4.250.0040.00416.26
7.4.240.0000.00716.52
7.4.230.0000.00716.44
7.4.220.0000.00716.32
7.4.210.0070.00816.45
7.4.200.0000.00716.52
7.4.130.0080.01216.59
7.4.120.0140.00416.59
7.4.110.0060.01216.46
7.4.100.0220.00316.51
7.4.90.0160.00616.46
7.4.80.0030.01719.39
7.4.70.0120.00416.45
7.4.60.0080.00816.61
7.4.50.0070.00716.26
7.4.40.0160.01016.55
7.4.30.0100.00716.39
7.4.20.0120.00916.19
7.4.10.0140.00316.27
7.4.00.0090.00616.30
7.3.330.0040.00416.20
7.3.320.0030.00312.90
7.3.310.0000.00716.34
7.3.300.0000.00716.04
7.3.290.0080.01016.18
7.3.280.0070.00716.24
7.3.260.0100.00716.24
7.3.240.0070.01016.33
7.3.230.0130.00316.48
7.3.210.0070.01016.53
7.3.200.0110.01116.15
7.3.190.0170.00016.26
7.3.180.0090.00616.30
7.3.170.0130.00316.26
7.3.160.0170.00716.25
7.3.150.0060.01016.26
7.3.140.0030.01216.32
7.3.130.0110.00816.41
7.3.120.0130.00316.29
7.3.110.0030.01316.02
7.3.100.0060.01516.32
7.3.90.0070.01016.12
7.3.80.0030.01316.25
7.3.70.0060.00916.18
7.3.60.0100.00716.13
7.3.50.0060.01016.21
7.3.40.0110.00816.05
7.3.30.0100.00716.15
7.3.20.0070.01416.21
7.3.10.0160.00616.27
7.3.00.0070.01016.29
7.2.330.0160.00716.44
7.2.320.0030.01316.63
7.2.310.0030.01516.49
7.2.300.0070.01016.67
7.2.290.0130.00616.53
7.2.280.0120.00616.63
7.2.270.0120.00616.47
7.2.260.0110.00616.50
7.2.250.0030.01216.24
7.2.240.0090.00916.16
7.2.230.0030.01316.41
7.2.220.0120.00916.55
7.2.210.0060.01216.55
7.2.200.0070.01016.29
7.2.190.0030.01416.16
7.2.180.0090.00816.20
7.2.170.0070.01016.36
7.2.160.0090.01216.24
7.2.150.0130.00916.36
7.2.140.0090.00916.39
7.2.130.0160.00616.50
7.2.120.0080.01116.40
7.2.110.0050.01416.32
7.2.100.0100.01016.41
7.2.90.0130.00716.23
7.2.80.0060.01316.52
7.2.70.0130.00916.23
7.2.60.0100.01016.14
7.2.50.0100.00716.52
7.2.40.0080.01316.20
7.2.30.0030.01616.46
7.2.20.0190.00916.27
7.2.10.0060.01216.44
7.2.00.0030.01416.32

preferences:
15.26 ms | 403 KiB | 5 Q