3v4l.org

run code in 300+ PHP versions simultaneously
<?php $variableName = 'MyVariable'; $variableName .= '900'; // Create new variable with the name defined in variable $variableName ${$variableName} = 'MyValue'; ${$variableName} .= '900'; //Outputs: string(7) "MyValue" var_dump($MyVariable); //Outputs: string(7) "MyValue" var_dump(${'MyVariable'});

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.0140.00718.56
8.3.50.0110.00622.09
8.3.40.0210.00018.67
8.3.30.0100.00318.88
8.3.20.0040.00420.33
8.3.10.0040.00421.76
8.3.00.0030.00519.06
8.2.180.0140.00316.50
8.2.170.0140.00718.84
8.2.160.0130.00022.96
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0050.00326.16
8.2.120.0080.00019.77
8.2.110.0080.00020.40
8.2.100.0110.00018.12
8.2.90.0040.00419.17
8.2.80.0030.00517.97
8.2.70.0030.00617.50
8.2.60.0080.00017.93
8.2.50.0040.00418.07
8.2.40.0000.00820.05
8.2.30.0080.00018.14
8.2.20.0040.00417.81
8.2.10.0040.00418.16
8.2.00.0060.00317.72
8.1.280.0040.01925.92
8.1.270.0080.00018.91
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00322.09
8.1.230.0070.00419.00
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0030.00617.23
8.1.190.0040.00417.13
8.1.180.0000.00818.10
8.1.170.0000.00818.59
8.1.160.0000.00722.01
8.1.150.0050.00318.88
8.1.140.0040.00417.45
8.1.130.0030.00317.77
8.1.120.0050.00317.51
8.1.110.0000.00717.51
8.1.100.0070.00017.48
8.1.90.0030.00317.43
8.1.80.0070.00017.49
8.1.70.0040.00417.36
8.1.60.0030.00617.57
8.1.50.0000.00817.41
8.1.40.0000.00717.53
8.1.30.0050.00317.55
8.1.20.0040.00417.63
8.1.10.0000.00817.43
8.1.00.0030.00517.38
8.0.300.0000.00718.77
8.0.290.0090.00016.75
8.0.280.0070.00018.44
8.0.270.0030.00317.30
8.0.260.0030.00317.32
8.0.250.0030.00316.98
8.0.240.0070.00016.91
8.0.230.0030.00316.92
8.0.220.0000.00616.96
8.0.210.0040.00416.93
8.0.200.0030.00317.08
8.0.190.0060.00317.01
8.0.180.0000.00816.96
8.0.170.0000.00916.93
8.0.160.0040.00416.95
8.0.150.0000.00816.97
8.0.140.0040.00816.81
8.0.130.0060.00313.42
8.0.120.0040.00416.88
8.0.110.0070.00017.02
8.0.100.0000.00816.82
8.0.90.0000.00716.75
8.0.80.0080.01517.00
8.0.70.0040.00416.97
8.0.60.0040.00416.92
8.0.50.0040.00417.01
8.0.30.0130.01117.13
8.0.20.0150.00517.40
8.0.10.0000.00717.09
8.0.00.0090.00916.67
7.4.330.0020.00215.16
7.4.320.0030.00316.55
7.4.300.0000.00716.62
7.4.290.0030.00316.59
7.4.280.0040.00416.43
7.4.270.0030.00316.53
7.4.260.0000.00716.50
7.4.250.0070.00016.48
7.4.240.0020.00516.58
7.4.230.0000.00716.67
7.4.220.0090.00916.46
7.4.210.0040.01116.45
7.4.200.0040.00416.34
7.4.160.0060.00816.47
7.4.150.0140.01117.40
7.4.140.0110.00817.86
7.4.130.0080.00816.52
7.4.120.0120.00716.39
7.4.110.0120.00616.54
7.4.100.0150.00316.39
7.4.90.0000.01716.66
7.4.80.0100.01019.39
7.4.70.0040.01216.37
7.4.60.0080.01016.60
7.4.50.0020.00216.58
7.4.40.0120.00616.43
7.4.30.0090.01216.73
7.4.00.0040.01215.18
7.3.330.0000.00613.00
7.3.320.0060.00013.09
7.3.310.0030.00316.30
7.3.300.0000.00616.28
7.3.290.0080.00616.26
7.3.280.0090.00716.27
7.3.270.0120.00617.40
7.3.260.0060.01216.29
7.3.250.0070.01016.29
7.3.240.0030.01216.48
7.3.230.0120.00916.54
7.3.210.0070.01016.30
7.3.200.0120.00619.39
7.3.190.0070.01716.23
7.3.180.0110.00616.48
7.3.170.0080.00816.36
7.3.160.0030.01316.44
7.3.10.0030.01016.29
7.3.00.0040.01216.43
7.2.330.0090.00916.27
7.2.320.0100.01016.28
7.2.310.0060.01216.50
7.2.300.0120.00616.64
7.2.290.0130.00316.48
7.2.130.0030.01416.52
7.2.120.0090.00616.80
7.2.110.0080.00416.77
7.2.100.0030.01316.78
7.2.90.0070.00716.77
7.2.80.0000.01316.52
7.2.70.0060.00916.70
7.2.60.0080.00316.82
7.2.50.0100.01316.78
7.2.40.0030.01216.80
7.2.30.0030.01016.68
7.2.20.0030.00616.95
7.2.10.0110.00316.55
7.2.00.0070.00918.14
7.1.250.0030.01015.79
7.1.100.0150.00018.28
7.1.70.0000.00717.16
7.1.60.0070.01719.46
7.1.50.0150.01534.43
7.1.00.0070.07322.28
7.0.200.0820.00314.80
7.0.140.0030.03321.96
7.0.60.0030.04019.82
7.0.50.0100.05317.81
7.0.40.0030.04720.24
7.0.30.0200.06320.04
7.0.20.0230.05720.16
7.0.10.0000.06320.20
7.0.00.0070.05720.18
5.6.280.0130.06021.08
5.6.210.0070.07020.61
5.6.200.0070.05318.19
5.6.190.0070.04020.34
5.6.180.0600.04720.67
5.6.170.0300.04020.52
5.6.160.0070.06020.37
5.6.150.0130.07318.12
5.6.140.0070.07718.16
5.6.130.0000.06718.18
5.6.120.0030.07021.11
5.6.110.0130.06321.13
5.6.100.0070.03721.11
5.6.90.0070.08720.97
5.6.80.0100.05320.38
5.5.350.0330.07320.32
5.5.340.0100.07717.92
5.5.330.0100.05020.13
5.5.320.0070.08320.27
5.5.310.0500.07020.34
5.5.300.0070.08317.92
5.5.290.0100.05318.01
5.5.280.0230.06720.98
5.5.270.0130.08020.78
5.5.260.0130.06320.88
5.5.250.0100.07320.68
5.5.240.0030.07720.10
5.4.450.0870.05319.52
5.4.440.0470.06319.45
5.4.430.0000.06319.45
5.4.420.0130.05719.14
5.4.410.0130.05019.32
5.4.400.0100.05319.00
5.4.390.0200.05018.62
5.4.380.0230.05018.67
5.4.370.0200.04718.51
5.4.360.0100.05718.67
5.4.350.0170.05718.52
5.4.340.0130.07018.48
5.4.320.0170.05718.65
5.4.310.0270.06318.48
5.4.300.0230.06318.55
5.4.290.0270.05718.68
5.4.280.0200.05018.59
5.4.270.0170.05318.61
5.4.260.0200.05018.63
5.4.250.0170.05718.76
5.4.240.0170.05318.76
5.4.230.0130.05318.70
5.4.220.0300.04018.70
5.4.210.0130.05718.48
5.4.200.0230.04716.38
5.4.190.0070.06318.69
5.4.180.0170.05718.44
5.4.170.0130.05718.65
5.4.160.0170.05318.48
5.4.150.0270.04718.68
5.4.140.0270.04016.16
5.4.130.0130.05016.31
5.4.120.0200.05016.28
5.4.110.0170.04716.07
5.4.100.0130.05716.28
5.4.90.0130.05716.11
5.4.80.0230.05316.05
5.4.70.0300.06016.23
5.4.60.0230.06316.09
5.4.50.0100.05716.31
5.4.40.0070.06316.31
5.4.30.0230.04315.98
5.4.20.0200.05316.26
5.4.10.0170.05016.25
5.4.00.0200.04715.55
5.3.290.0230.05014.56
5.3.280.0230.05014.50
5.3.270.0170.05714.51
5.3.260.0170.05714.69
5.3.250.0100.06014.59
5.3.240.0170.05714.50
5.3.230.0070.06314.49
5.3.220.0300.04314.65
5.3.210.0200.06314.52
5.3.200.0170.05314.53
5.3.190.0170.05314.63
5.3.180.0130.06014.53
5.3.170.0330.03714.46
5.3.160.0100.06014.50
5.3.150.0200.05014.53
5.3.140.0300.04014.56
5.3.130.0130.05714.39
5.3.120.0230.05314.51
5.3.110.0130.05714.55
5.3.100.0130.05313.95
5.3.90.0200.05313.94
5.3.80.0200.05013.98
5.3.70.0170.05014.10
5.3.60.0200.04713.98
5.3.50.0200.04713.82
5.3.40.0230.04713.88
5.3.30.0270.03713.86
5.3.20.0170.05013.77
5.3.10.0200.04013.57
5.3.00.0200.05313.61
5.2.170.0230.03311.11
5.2.160.0000.05711.16
5.2.150.0100.04711.08
5.2.140.0100.04711.03
5.2.130.0100.04711.02
5.2.120.0170.04011.07
5.2.110.0130.05010.96
5.2.100.0200.04711.23
5.2.90.0100.05711.00
5.2.80.0300.02710.98
5.2.70.0200.04711.23
5.2.60.0230.03311.05
5.2.50.0230.03710.92
5.2.40.0130.04010.96
5.2.30.0100.05010.88
5.2.20.0200.03010.86
5.2.10.0200.04310.84
5.2.00.0130.04710.80
5.1.60.0070.03710.00
5.1.50.0030.0409.90
5.1.40.0000.04710.04
5.1.30.0170.03010.46
5.1.20.0130.03710.38
5.1.10.0100.03710.19
5.1.00.0030.04310.06
5.0.50.0100.0278.50
5.0.40.0070.0278.36
5.0.30.0030.0478.29
5.0.20.0100.0238.17
5.0.10.0000.0438.18
5.0.00.0000.0508.20
4.4.90.0100.0175.86
4.4.80.0070.0205.90
4.4.70.0070.0235.93
4.4.60.0100.0205.89
4.4.50.0100.0205.91
4.4.40.0030.0375.88
4.4.30.0070.0235.89
4.4.20.0000.0275.95
4.4.10.0030.0235.94
4.4.00.0070.0335.92
4.3.110.0000.0275.81
4.3.100.0070.0205.82
4.3.90.0100.0175.81
4.3.80.0000.0405.86
4.3.70.0030.0235.91
4.3.60.0070.0205.85
4.3.50.0100.0175.87
4.3.40.0130.0275.80
4.3.30.0000.0274.57
4.3.20.0130.0134.51
4.3.10.0030.0234.51
4.3.00.0070.0279.29

preferences:
50.45 ms | 401 KiB | 5 Q