3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = 'ciao'; $bar = array( strrev($foo) => 'foo' ); var_dump($bar);

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.0150.00618.30
8.3.50.0090.00921.87
8.3.40.0070.01018.79
8.3.30.0100.00318.92
8.3.20.0040.00420.14
8.3.10.0040.00421.66
8.3.00.0090.00019.13
8.2.180.0100.00716.75
8.2.170.0070.01022.96
8.2.160.0090.00620.39
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0000.00826.16
8.2.120.0050.00319.36
8.2.110.0030.00619.33
8.2.100.0060.00617.63
8.2.90.0000.00718.85
8.2.80.0080.00017.97
8.2.70.0050.00317.63
8.2.60.0050.00317.68
8.2.50.0000.00818.07
8.2.40.0030.00519.84
8.2.30.0040.00418.03
8.2.20.0000.00917.66
8.2.10.0080.00018.00
8.2.00.0040.00417.57
8.1.280.0120.00325.92
8.1.270.0050.00318.91
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0000.00822.19
8.1.230.0080.00417.66
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0060.00317.13
8.1.190.0050.00317.23
8.1.180.0040.00418.10
8.1.170.0050.00318.46
8.1.160.0040.00421.86
8.1.150.0000.00718.75
8.1.140.0000.00717.38
8.1.130.0030.00517.82
8.1.120.0000.00817.34
8.1.110.0050.00217.27
8.1.100.0000.00717.26
8.1.90.0000.00817.29
8.1.80.0040.00417.35
8.1.70.0070.00017.26
8.1.60.0050.00517.43
8.1.50.0040.00417.46
8.1.40.0030.00517.45
8.1.30.0000.00817.48
8.1.20.0040.00417.51
8.1.10.0000.00817.44
8.1.00.0060.00317.45
8.0.300.0000.00718.77
8.0.290.0070.00016.63
8.0.280.0070.00018.28
8.0.270.0040.00417.19
8.0.260.0060.00017.10
8.0.250.0040.00416.87
8.0.240.0000.00816.88
8.0.230.0040.00416.76
8.0.220.0050.00216.78
8.0.210.0000.00716.84
8.0.200.0000.00616.77
8.0.190.0080.00016.78
8.0.180.0050.00316.73
8.0.170.0050.00316.90
8.0.160.0000.00816.86
8.0.150.0050.00216.66
8.0.140.0000.00716.83
8.0.130.0030.00713.24
8.0.120.0060.00316.66
8.0.110.0080.00016.64
8.0.100.0070.00016.72
8.0.90.0000.00716.76
8.0.80.0100.00716.86
8.0.70.0000.00816.78
8.0.60.0000.00816.68
8.0.50.0000.00716.82
8.0.30.0100.01117.18
8.0.20.0090.00917.40
8.0.10.0040.00416.83
8.0.00.0100.01016.62
7.4.330.0030.00315.08
7.4.320.0070.00016.43
7.4.300.0000.00616.53
7.4.290.0030.00316.53
7.4.280.0040.00416.36
7.4.270.0030.00316.36
7.4.260.0000.00816.38
7.4.250.0040.00416.29
7.4.240.0030.00416.43
7.4.230.0030.00316.52
7.4.220.0100.00716.59
7.4.210.0070.01116.46
7.4.200.0030.00316.33
7.4.160.0080.01316.48
7.4.150.0040.01317.40
7.4.140.0050.01317.86
7.4.130.0120.00616.43
7.4.120.0060.01216.38
7.4.110.0120.00616.36
7.4.100.0100.00716.23
7.4.90.0100.00716.27
7.4.80.0120.00919.39
7.4.70.0090.00616.35
7.4.60.0030.01316.45
7.4.50.0040.00416.39
7.4.40.0140.00716.52
7.4.30.0060.01416.39
7.4.00.0070.00714.67
7.3.330.0050.00013.03
7.3.320.0000.01112.99
7.3.310.0070.00016.13
7.3.300.0000.00716.20
7.3.290.0040.00416.09
7.3.280.0080.00816.20
7.3.270.0030.01317.40
7.3.260.0080.01516.29
7.3.250.0120.00516.42
7.3.240.0090.00616.40
7.3.230.0130.01316.39
7.3.210.0100.00616.13
7.3.200.0160.00019.39
7.3.190.0060.01116.40
7.3.180.0130.00616.17
7.3.170.0150.00416.36
7.3.160.0070.01416.47
7.2.330.0120.00616.51
7.2.320.0170.00316.23
7.2.310.0080.00816.38
7.2.300.0000.01616.46
7.2.290.0090.00916.55
7.2.60.0030.00616.45
7.2.50.0080.00816.64
7.2.00.0000.01819.33
7.1.200.0000.00815.64
7.1.100.0040.00418.28
7.1.70.0000.01117.24
7.1.60.0090.01519.50
7.1.50.0100.01416.79
7.1.00.0030.07322.39
7.0.200.0620.00314.47
7.0.140.0030.06722.09
7.0.60.0070.04019.82
7.0.50.0030.06317.66
7.0.40.0030.04320.11
7.0.30.0300.07720.04
7.0.20.0300.07720.30
7.0.10.0270.06720.18
7.0.00.0070.04020.16
5.6.280.0030.07320.98
5.6.210.0070.05020.63
5.6.200.0000.08318.19
5.6.190.0170.08020.43
5.6.180.0300.05320.44
5.6.170.0230.03720.42
5.6.160.0030.05020.52
5.6.150.0100.07318.11
5.6.140.0000.05718.18
5.6.130.0070.08318.14
5.6.120.0200.07321.14
5.6.110.0100.03320.96
5.6.100.0200.06320.98
5.6.90.0230.06020.86
5.6.80.0030.04020.50
5.6.70.0030.04320.52
5.5.350.0200.04720.42
5.5.340.0070.06317.91
5.5.330.0000.05020.36
5.5.320.0170.07020.07
5.5.310.0230.04320.28
5.5.300.0200.04018.01
5.5.290.0030.07317.89
5.5.280.0170.06720.76
5.5.270.0000.05320.86
5.5.260.0030.05720.75
5.5.250.0070.08020.68
5.5.240.0000.04320.10
5.4.450.0370.05319.45
5.4.440.0700.06719.55
5.4.430.0100.06019.46
5.4.420.0470.05719.20
5.4.410.0100.07318.95
5.4.400.1230.07718.80
5.4.390.1230.05018.68
5.4.380.1300.04318.75
5.4.370.1070.04718.70
5.4.360.0900.06318.71
5.4.350.0830.06018.59
5.4.340.1300.05018.68
5.4.320.1230.05318.59
5.4.310.1270.05018.75
5.4.300.1170.06018.48
5.4.290.1130.05018.57
5.4.280.1100.06018.56
5.4.270.1400.07018.54
5.4.260.1030.06318.71
5.4.250.1130.05718.48
5.4.240.1200.06318.67
5.4.230.1030.06718.59
5.4.220.1200.06318.69
5.4.210.1070.07318.47
5.4.200.1130.06016.39
5.4.190.0930.05318.50
5.4.180.1070.05318.47
5.4.170.0930.06018.75
5.4.160.1100.06018.58
5.4.150.0900.06318.38
5.4.140.1270.04016.27
5.4.130.0930.05316.35
5.4.120.0900.05716.36
5.4.110.1070.05716.16
5.4.100.0900.05316.29
5.4.90.1170.05716.19
5.4.80.0970.05716.23
5.4.70.1100.04716.13
5.4.60.0770.05316.17
5.4.50.0930.04316.05
5.4.40.0530.05016.27
5.4.30.0030.05316.02
5.4.20.0130.04716.18
5.4.10.0330.04316.27
5.4.00.1130.05315.70
5.3.290.1130.05314.70
5.3.280.1100.05714.48
5.3.270.1070.07014.58
5.3.260.1200.06014.62
5.3.250.0870.05714.59
5.3.240.0830.06014.58
5.3.230.0900.05314.63
5.3.220.1230.05314.58
5.3.210.0870.05714.49
5.3.200.0900.05714.53
5.3.190.0970.05014.49
5.3.180.1130.04714.43
5.3.170.1130.04714.52
5.3.160.1200.05714.45
5.3.150.1070.06014.52
5.3.140.1270.04714.65
5.3.130.1070.05714.64
5.3.120.1100.06014.52
5.3.110.1070.04314.52
5.3.100.1030.05714.01
5.3.90.1200.05013.93
5.3.80.1200.04713.95
5.3.70.0900.05713.98
5.3.60.0870.05713.93
5.3.50.1300.04013.93
5.3.40.1100.05313.84
5.3.30.1130.05313.81
5.3.20.0870.05313.69
5.3.10.0800.06013.64
5.3.00.1400.06713.71
5.2.170.1030.05011.05
5.2.160.0900.04011.12
5.2.150.0900.04711.12
5.2.140.0930.04011.04
5.2.130.1030.03311.09
5.2.120.1270.04311.03
5.2.110.1000.04311.03
5.2.100.0930.03711.03
5.2.90.0930.04311.07
5.2.80.0900.04311.09
5.2.70.0930.04311.07
5.2.60.0930.04710.96
5.2.50.1000.05011.05
5.2.40.0700.05010.96
5.2.30.0770.04310.96
5.2.20.0600.04010.99
5.2.10.0570.04310.83
5.2.00.0770.04010.81
5.1.60.0770.0479.96
5.1.50.0770.03010.13
5.1.40.0700.03710.00
5.1.30.0700.04310.41
5.1.20.0570.04010.48
5.1.10.0730.04310.08
5.1.00.0700.03710.04
5.0.50.0330.0278.59
5.0.40.0430.0338.46
5.0.30.0430.0378.25
5.0.20.0400.0278.34
5.0.10.0430.0278.33
5.0.00.0370.0438.23
4.4.90.0400.0205.86
4.4.80.0370.0205.94
4.4.70.0400.0205.80
4.4.60.0400.0175.91
4.4.50.0400.0175.87
4.4.40.0370.0375.90
4.4.30.0330.0235.91
4.4.20.0400.0205.94
4.4.10.0400.0305.91
4.4.00.0370.0375.91
4.3.110.0370.0275.77
4.3.100.0270.0235.74
4.3.90.0330.0235.78
4.3.80.0370.0335.89
4.3.70.0400.0175.89
4.3.60.0300.0235.90
4.3.50.0330.0275.78
4.3.40.0500.0235.74
4.3.30.0200.0334.55
4.3.20.0200.0204.54
4.3.10.0170.0234.55
4.3.00.0170.0237.04

preferences:
55.83 ms | 401 KiB | 5 Q