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.0100.01018.30
8.3.50.0070.01121.92
8.3.40.0180.00318.71
8.3.30.0000.01419.01
8.3.20.0080.00020.24
8.3.10.0040.00421.82
8.3.00.0070.00019.08
8.2.180.0110.00716.63
8.2.170.0130.00722.96
8.2.160.0030.01022.08
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0080.00019.66
8.2.110.0120.00920.39
8.2.100.0000.01118.09
8.2.90.0070.00019.41
8.2.80.0060.00317.97
8.2.70.0090.00017.50
8.2.60.0030.00517.92
8.2.50.0000.00818.07
8.2.40.0030.00619.88
8.2.30.0040.00418.09
8.2.20.0070.00017.75
8.2.10.0050.00317.93
8.2.00.0050.00217.75
8.1.280.0100.01025.92
8.1.270.0040.00418.95
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0040.01821.93
8.1.230.0080.00318.97
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0040.00418.50
8.1.160.0070.00021.93
8.1.150.0000.00718.97
8.1.140.0000.00717.45
8.1.130.0000.00717.84
8.1.120.0000.00717.36
8.1.110.0050.00317.38
8.1.100.0000.00717.45
8.1.90.0030.00517.49
8.1.80.0070.00017.46
8.1.70.0000.00717.47
8.1.60.0030.00617.66
8.1.50.0090.00017.54
8.1.40.0040.00417.39
8.1.30.0040.00417.63
8.1.20.0000.00817.60
8.1.10.0080.00017.30
8.1.00.0000.00717.22
8.0.300.0040.00418.77
8.0.290.0070.00016.63
8.0.280.0030.00318.38
8.0.270.0000.00717.30
8.0.260.0060.00017.25
8.0.250.0000.00616.93
8.0.240.0000.00816.85
8.0.230.0070.00016.99
8.0.220.0000.00716.75
8.0.210.0030.00616.78
8.0.200.0030.00316.80
8.0.190.0040.00416.98
8.0.180.0080.00016.91
8.0.170.0000.00816.82
8.0.160.0070.00016.92
8.0.150.0020.00516.85
8.0.140.0000.00916.89
8.0.130.0000.00513.32
8.0.120.0030.00516.82
8.0.110.0000.00716.83
8.0.100.0040.00416.78
8.0.90.0000.00717.00
8.0.80.0070.01016.93
8.0.70.0040.00416.74
8.0.60.0000.00716.91
8.0.50.0040.00416.88
8.0.30.0130.01017.31
8.0.20.0090.01117.40
8.0.10.0000.00717.04
8.0.00.0100.00816.84
7.4.330.0000.00515.03
7.4.320.0030.00316.58
7.4.300.0000.00716.40
7.4.290.0000.00716.51
7.4.280.0000.00816.60
7.4.270.0030.00316.52
7.4.260.0030.00316.56
7.4.250.0060.00316.56
7.4.240.0020.00616.55
7.4.230.0050.00216.49
7.4.220.0070.01016.51
7.4.210.0040.01116.63
7.4.200.0000.00716.41
7.4.160.0130.00316.51
7.4.150.0130.01317.40
7.4.140.0080.01417.86
7.4.130.0150.00216.43
7.4.120.0060.01216.47
7.4.110.0150.00416.32
7.4.100.0090.00916.65
7.4.90.0040.01416.52
7.4.80.0090.00919.39
7.4.70.0100.00616.50
7.4.60.0060.01216.53
7.4.50.0000.00716.49
7.4.40.0030.01916.62
7.4.30.0070.01016.57
7.4.00.0070.00715.06
7.3.330.0000.00613.04
7.3.320.0050.00012.93
7.3.310.0000.00716.27
7.3.300.0030.00316.07
7.3.290.0070.00816.21
7.3.280.0090.00716.18
7.3.270.0100.00717.40
7.3.260.0130.00616.26
7.3.250.0130.00316.29
7.3.240.0160.00016.21
7.3.230.0070.01016.39
7.3.210.0070.00916.21
7.3.200.0100.01016.33
7.3.190.0030.01416.43
7.3.180.0040.01116.05
7.3.170.0200.00316.27
7.3.160.0060.01116.55
7.3.10.0070.01216.35
7.3.00.0120.01216.07
7.2.330.0130.00316.61
7.2.320.0060.01116.32
7.2.310.0060.01016.47
7.2.300.0110.01216.65
7.2.290.0080.01516.30
7.2.130.0120.00816.17
7.2.120.0000.02016.38
7.2.110.0120.00316.25
7.2.100.0080.00816.42
7.2.90.0030.01016.57
7.2.80.0140.00416.40
7.2.70.0080.00816.53
7.2.60.0100.00716.21
7.2.50.0060.00916.83
7.2.40.0030.01216.26
7.2.30.0070.00716.46
7.2.20.0040.00816.48
7.2.10.0150.00416.67
7.2.00.0080.00818.16
7.1.250.0090.00615.24
7.1.100.0080.00818.21
7.1.70.0040.00416.95
7.1.60.0140.01019.46
7.1.50.0130.01034.68
7.1.00.0030.07722.30
7.0.200.0580.00714.77
7.0.140.0000.03721.95
7.0.60.0000.06019.91
7.0.50.0100.07717.79
7.0.40.0070.08720.23
7.0.30.0230.04320.00
7.0.20.0270.04320.30
7.0.10.0070.08720.09
7.0.00.0030.08720.19
5.6.280.0030.07320.89
5.6.210.0030.06320.77
5.6.200.0170.06318.24
5.6.190.0130.03720.28
5.6.180.0430.07720.41
5.6.170.0230.04020.48
5.6.160.0100.04020.44
5.6.150.0070.08318.19
5.6.140.0030.08718.12
5.6.130.0030.07018.09
5.6.120.0170.07320.98
5.6.110.0070.08720.98
5.6.100.0000.04720.96
5.6.90.0070.07720.96
5.6.80.0070.08020.50
5.5.350.0400.06720.42
5.5.340.0030.05317.92
5.5.330.0170.07320.23
5.5.320.0370.07720.28
5.5.310.0370.07720.41
5.5.300.0130.07018.00
5.5.290.0100.08018.02
5.5.280.0070.03720.96
5.5.270.0030.06020.85
5.5.260.0030.07320.86
5.5.250.0100.07720.54
5.5.240.0070.07720.04
5.4.450.0770.05719.55
5.4.440.0800.05019.41
5.4.430.0100.06719.45
5.4.420.0100.05719.45
5.4.410.0070.05719.39
5.4.400.0070.05319.19
5.4.390.0270.05018.62
5.4.380.0230.05718.48
5.4.370.0200.05018.49
5.4.360.0230.04718.77
5.4.350.0200.06018.64
5.4.340.0130.05718.68
5.4.320.0230.04718.71
5.4.310.0230.04718.64
5.4.300.0200.06718.57
5.4.290.0200.05318.61
5.4.280.0130.05318.47
5.4.270.0170.05318.49
5.4.260.0300.04018.63
5.4.250.0100.06318.73
5.4.240.0230.05718.68
5.4.230.0130.06018.59
5.4.220.0230.04718.56
5.4.210.0170.06018.75
5.4.200.0130.05716.45
5.4.190.0100.06018.43
5.4.180.0130.06018.70
5.4.170.0230.07018.61
5.4.160.0130.07318.64
5.4.150.0130.07018.75
5.4.140.0270.04316.19
5.4.130.0100.05316.21
5.4.120.0270.04016.16
5.4.110.0170.04716.05
5.4.100.0170.05716.14
5.4.90.0100.05716.20
5.4.80.0170.04716.05
5.4.70.0130.05316.17
5.4.60.0100.05716.13
5.4.50.0130.05016.15
5.4.40.0070.06016.18
5.4.30.0270.04716.25
5.4.20.0100.06716.16
5.4.10.0170.05716.18
5.4.00.0230.04015.69
5.3.290.0230.04714.56
5.3.280.0270.04314.48
5.3.270.0200.05314.45
5.3.260.0070.07014.69
5.3.250.0270.06314.57
5.3.240.0170.07014.69
5.3.230.0270.04314.50
5.3.220.0170.05714.48
5.3.210.0200.05014.46
5.3.200.0800.05714.39
5.3.190.0270.04314.65
5.3.180.0200.05014.49
5.3.170.0170.05714.56
5.3.160.0130.06714.40
5.3.150.0300.07014.40
5.3.140.0300.06014.49
5.3.130.0100.08014.63
5.3.120.0300.06014.48
5.3.110.0330.05714.48
5.3.100.0170.07313.95
5.3.90.0130.07014.00
5.3.80.0230.06314.10
5.3.70.0200.06714.10
5.3.60.0230.05713.99
5.3.50.0270.05713.84
5.3.40.0300.06014.04
5.3.30.0170.06713.89
5.3.20.0100.06313.76
5.3.10.0230.05013.74
5.3.00.0100.07313.46
5.2.170.0200.03311.05
5.2.160.0030.05011.27
5.2.150.0230.03311.08
5.2.140.0100.05011.09
5.2.130.0070.05011.08
5.2.120.0070.04711.07
5.2.110.0130.04711.11
5.2.100.0170.05011.09
5.2.90.0130.05311.09
5.2.80.0100.06011.01
5.2.70.0200.05010.98
5.2.60.0130.04011.05
5.2.50.0070.04711.02
5.2.40.0100.04310.91
5.2.30.0170.04311.00
5.2.20.0200.03710.88
5.2.10.0230.03010.89
5.2.00.0130.05010.80
5.1.60.0130.04310.00
5.1.50.0200.03310.04
5.1.40.0070.05010.11
5.1.30.0100.03710.30
5.1.20.0070.04710.34
5.1.10.0100.03710.04
5.1.00.0070.05710.05
5.0.50.0030.0438.50
5.0.40.0100.0278.39
5.0.30.0070.0578.24
5.0.20.0130.0308.25
5.0.10.0100.0378.17
5.0.00.0130.0478.22
4.4.90.0070.0275.82
4.4.80.0000.0275.91
4.4.70.0100.0235.89
4.4.60.0100.0205.89
4.4.50.0130.0235.95
4.4.40.0070.0435.89
4.4.30.0030.0335.89
4.4.20.0030.0335.92
4.4.10.0130.0175.92
4.4.00.0130.0305.94
4.3.110.0030.0275.80
4.3.100.0100.0175.82
4.3.90.0030.0235.79
4.3.80.0070.0335.78
4.3.70.0030.0235.79
4.3.60.0100.0205.89
4.3.50.0030.0335.83
4.3.40.0100.0305.80
4.3.30.0000.0274.55
4.3.20.0000.0274.52
4.3.10.0030.0234.61
4.3.00.0130.0209.29

preferences:
51.11 ms | 401 KiB | 5 Q