3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = "foo"; ${'"x"'} = "bar"; $doc = "${<<<'HERE' "x" HERE }"; var_dump($doc);

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.1.70.0000.00717.48
8.1.60.0040.00417.56
8.1.50.0030.00717.47
8.1.40.0000.00717.52
8.1.30.0000.00817.63
8.1.20.0040.00417.55
8.1.10.0040.00417.50
8.1.00.0060.00317.39
8.0.200.0070.00016.96
8.0.190.0070.00016.83
8.0.180.0070.00016.91
8.0.170.0060.00316.83
8.0.160.0050.00316.91
8.0.150.0080.00016.72
8.0.140.0040.00416.84
8.0.130.0000.00613.31
8.0.120.0030.00616.83
8.0.110.0050.00316.79
8.0.100.0000.00816.94
8.0.90.0030.00316.77
8.0.80.0110.00416.87
8.0.70.0070.00016.91
8.0.60.0000.00816.68
8.0.50.0070.00016.73
8.0.30.0130.00917.18
8.0.20.0220.01217.40
8.0.10.0000.00816.93
8.0.00.0110.01016.53
7.4.300.0000.00616.59
7.4.290.0030.00316.39
7.4.280.0030.00516.57
7.4.270.0030.00316.64
7.4.260.0070.00016.61
7.4.250.0040.00416.56
7.4.240.0020.00616.47
7.4.230.0050.00216.66
7.4.220.0030.01316.54
7.4.210.0070.00716.66
7.4.200.0030.00316.50
7.4.160.0090.00616.68
7.4.150.0090.00917.40
7.4.140.0090.01217.86
7.4.130.0090.01116.54
7.4.120.0100.01016.54
7.4.110.0090.00916.40
7.4.100.0070.01616.35
7.4.90.0080.00816.54
7.4.80.0130.01019.39
7.4.70.0060.01116.32
7.4.60.0110.00516.57
7.4.50.0040.00416.35
7.4.40.0200.00316.59
7.4.30.0150.00616.34
7.4.00.0030.00915.04
7.3.330.0000.00613.18
7.3.320.0120.00413.00
7.3.310.0000.00716.21
7.3.300.0030.00316.12
7.3.290.0130.00516.29
7.3.280.0080.00816.26
7.3.270.0070.01117.40
7.3.260.0030.01416.57
7.3.250.0140.00816.38
7.3.240.0130.00316.23
7.3.230.0120.00616.39
7.3.210.0100.00716.36
7.3.200.0100.00719.39
7.3.190.0160.00016.27
7.3.180.0040.01316.55
7.3.170.0070.01116.27
7.3.160.0110.00716.25
7.2.330.0030.01316.50
7.2.320.0140.00316.31
7.2.310.0070.01016.57
7.2.300.0030.01316.47
7.2.290.0070.01416.54
7.2.60.0000.01416.80
7.2.00.0000.01619.20
7.1.200.0000.01515.63
7.1.100.0030.00718.18
7.1.70.0050.00517.14
7.1.60.0120.01219.50
7.1.50.0120.00916.98
7.1.00.0000.08022.31
7.0.200.0030.00516.63
7.0.140.0030.03721.95
7.0.60.0100.08319.91
7.0.50.0100.04317.84
7.0.40.0070.04320.27
7.0.30.0500.07320.21
7.0.20.0230.08020.12
7.0.10.0370.07019.99
7.0.00.0070.05720.13
5.6.280.0030.07020.82
5.6.210.0030.07020.60
5.6.200.0100.07718.16
5.6.190.0030.08020.57
5.6.180.0370.07020.54
5.6.170.0170.04320.61
5.6.160.0070.04720.46
5.6.150.0100.03318.18
5.6.140.0070.03718.16
5.6.130.0030.09018.21
5.6.120.0070.09021.09
5.6.110.0070.08721.09
5.6.100.0000.07720.95
5.6.90.0070.09021.07
5.6.80.0130.07720.39
5.6.70.0270.07320.38
5.5.350.0170.08720.44
5.5.340.0130.07317.98
5.5.330.0070.08720.30
5.5.320.0000.04020.21
5.5.310.0400.07020.18
5.5.300.0070.08317.90
5.5.290.0130.06318.02
5.5.280.0070.07720.75
5.5.270.0070.06320.96
5.5.260.0070.07020.87
5.5.250.0070.06020.61
5.5.240.0100.07320.25
5.4.450.0400.05319.61
5.4.440.0970.05319.10
5.4.430.1030.07019.59
5.4.420.0070.05719.29
5.4.410.0130.07318.87
5.4.400.0570.04318.77
5.4.390.0470.06318.78
5.4.380.0330.06318.72
5.4.370.0400.05318.52
5.4.360.0530.05718.78
5.4.350.0270.06318.61
5.4.340.0400.05718.49
5.4.320.0370.05718.52
5.4.310.0430.06018.69
5.4.300.0400.05718.62
5.4.290.0570.05018.64
5.4.280.0400.05718.52
5.4.270.0400.05318.48
5.4.260.0470.04718.49
5.4.250.0500.06318.52
5.4.240.0430.07318.68
5.4.230.0500.06018.61
5.4.220.0270.06018.57
5.4.210.0330.05318.70
5.4.200.0530.03016.35
5.4.190.0500.05018.48
5.4.180.0430.07718.63
5.4.170.0370.06318.70
5.4.160.0370.07018.44
5.4.150.0470.05018.54
5.4.140.0300.06016.18
5.4.130.0330.04716.35
5.4.120.0500.07316.00
5.4.110.0400.05316.35
5.4.100.0230.06016.24
5.4.90.0370.05716.04
5.4.80.0330.05316.33
5.4.70.0370.06016.02
5.4.60.0330.05316.04
5.4.50.0370.04716.16
5.4.40.0430.07716.02
5.4.30.0430.04316.28
5.4.20.0370.06016.04
5.4.10.0370.06016.11
5.4.00.0400.06315.75
5.3.290.0400.04714.73
5.3.280.0500.06714.54
5.3.270.0400.07314.63
5.3.260.0500.06314.57
5.3.250.0400.06014.59
5.3.240.0370.05314.51
5.3.230.0530.06014.60
5.3.220.0330.05314.67
5.3.210.0200.07014.47
5.3.200.0270.06314.51
5.3.190.0470.06714.61
5.3.180.0300.07314.47
5.3.170.0430.07014.65
5.3.160.0630.05014.45
5.3.150.0300.06714.45
5.3.140.0770.05314.46
5.3.130.2170.05714.59
5.3.120.0430.05314.41
5.3.110.3270.05314.52
5.3.100.0400.06014.12
5.3.90.0330.05014.02
5.3.80.0430.05713.95
5.3.70.0430.07013.91
5.3.60.0430.07014.04
5.3.50.1600.07313.85
5.3.40.0330.06013.90
5.3.30.1870.06313.87
5.3.20.1000.06013.63
5.3.10.0470.05313.57
5.3.00.2300.06313.63
5.2.170.0930.05311.18
5.2.160.0370.05711.16
5.2.150.2600.05311.18
5.2.140.0430.05011.13
5.2.130.0370.03711.05
5.2.120.0470.03711.09
5.2.110.0300.05311.16
5.2.100.0500.04311.09
5.2.90.2470.05011.27
5.2.80.0370.04311.03
5.2.70.0870.04311.12
5.2.60.0300.04711.02
5.2.50.0400.05710.93
5.2.40.0200.04310.95
5.2.30.0430.05010.93
5.2.20.0300.05010.99
5.2.10.0300.03710.86
5.2.00.0500.05310.85
5.1.60.0370.0409.94
5.1.50.0330.0439.96
5.1.40.0230.0479.97
5.1.30.0130.03710.45
5.1.20.0270.04310.40
5.1.10.1700.05010.10
5.1.00.0200.04310.16
5.0.50.0100.0378.58
5.0.40.0100.0438.47
5.0.30.0070.0508.33
5.0.20.0430.0208.37
5.0.10.0100.0408.18
5.0.00.0070.0508.34
4.4.90.0070.0275.84
4.4.80.2530.0275.89
4.4.70.0230.0205.81
4.4.60.0070.0305.96
4.4.50.0130.0175.95
4.4.40.0200.0335.86
4.4.30.0170.0235.82
4.4.20.0170.0275.93
4.4.10.0170.0235.98
4.4.00.0200.0305.92
4.3.110.0230.0235.86
4.3.100.0130.0375.80
4.3.90.0100.0305.79
4.3.80.1370.0335.82
4.3.70.0300.0175.83
4.3.60.0200.0175.83
4.3.50.0130.0205.80
4.3.40.0130.0375.75
4.3.30.0070.0235.07
4.3.20.0100.0205.07
4.3.10.0030.0235.07
4.3.00.0170.0176.87

preferences:
13.4 ms | 406 KiB | 5 Q