3v4l.org

run code in 300+ PHP versions simultaneously
<?php $variableName = 'MyVariable'; // Create new variable with the name defined in variable $variableName ${$variableName} = 'MyValue'; //Outputs: string(7) "MyValue" var_dump($MyVariable); //Outputs: string(7) "MyValue" var_dump(${'MyVariable'}.$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.0130.00716.63
8.3.50.0120.00521.98
8.3.40.0120.00318.76
8.3.30.0080.01118.79
8.3.20.0070.00020.39
8.3.10.0030.00321.74
8.3.00.0030.00517.77
8.2.180.0090.01218.29
8.2.170.0040.01222.96
8.2.160.0100.00320.39
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0070.00021.06
8.2.110.0080.00022.13
8.2.100.0040.00818.03
8.2.90.0070.00019.09
8.2.80.0050.00317.97
8.2.70.0040.00417.38
8.2.60.0090.00017.93
8.2.50.0030.00818.07
8.2.40.0040.00418.22
8.2.30.0000.00818.19
8.2.20.0020.00517.82
8.2.10.0080.00018.05
8.2.00.0060.00317.64
8.1.280.0000.01425.92
8.1.270.0040.00423.96
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0090.00022.06
8.1.230.0040.00818.93
8.1.220.0000.00717.78
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0000.00817.22
8.1.180.0000.00718.10
8.1.170.0080.00018.37
8.1.160.0000.00722.00
8.1.150.0040.00418.79
8.1.140.0040.00417.37
8.1.130.0070.00017.76
8.1.120.0000.00717.47
8.1.110.0000.00817.35
8.1.100.0030.00317.46
8.1.90.0000.00717.47
8.1.80.0000.00717.46
8.1.70.0000.00717.43
8.1.60.0070.00017.57
8.1.50.0070.00017.53
8.1.40.0060.00317.44
8.1.30.0000.00817.51
8.1.20.0030.00617.63
8.1.10.0040.00417.49
8.1.00.0070.00017.35
8.0.300.0040.00418.77
8.0.290.0070.00016.63
8.0.280.0070.00018.45
8.0.270.0040.00417.14
8.0.260.0000.00717.17
8.0.250.0030.00316.83
8.0.240.0000.00716.83
8.0.230.0000.00716.96
8.0.220.0000.00716.92
8.0.210.0040.00416.87
8.0.200.0080.00016.96
8.0.190.0070.00016.91
8.0.180.0040.00416.88
8.0.170.0040.00416.80
8.0.160.0030.00416.86
8.0.150.0000.00716.89
8.0.140.0030.00316.79
8.0.130.0030.00313.38
8.0.120.0000.00716.84
8.0.110.0000.00716.80
8.0.100.0070.00016.77
8.0.90.0000.00716.75
8.0.80.0000.01416.84
8.0.70.0020.00516.76
8.0.60.0000.00716.69
8.0.50.0060.00316.92
8.0.30.0140.00616.91
8.0.20.0200.01817.40
8.0.10.0050.00316.98
8.0.00.0080.01016.88
7.4.330.0020.00215.03
7.4.320.0030.00316.40
7.4.300.0060.00016.64
7.4.290.0000.00716.45
7.4.280.0000.00716.60
7.4.270.0000.00716.62
7.4.260.0030.00316.63
7.4.250.0000.00716.51
7.4.240.0080.00016.49
7.4.230.0000.00716.34
7.4.220.0140.00716.67
7.4.210.0030.01016.55
7.4.200.0000.00716.66
7.4.160.0060.00916.48
7.4.150.0150.01517.40
7.4.140.0090.01317.86
7.4.130.0080.00916.52
7.4.120.0090.00916.52
7.4.110.0150.00316.54
7.4.100.0100.01016.39
7.4.90.0000.01716.44
7.4.80.0100.01019.39
7.4.70.0140.00316.30
7.4.60.0210.00016.58
7.4.50.0050.00016.28
7.4.40.0100.00716.58
7.4.30.0170.00016.36
7.4.00.0030.01014.76
7.3.330.0050.00013.19
7.3.320.0000.00713.00
7.3.310.0000.00716.09
7.3.300.0030.00316.23
7.3.290.0030.01016.20
7.3.280.0100.00816.23
7.3.270.0090.01217.40
7.3.260.0130.00716.34
7.3.250.0080.01016.46
7.3.240.0070.01116.18
7.3.230.0140.00316.39
7.3.210.0100.00616.27
7.3.200.0100.00619.39
7.3.190.0100.00716.56
7.3.180.0140.00016.33
7.3.170.0080.00816.35
7.3.160.0030.01316.40
7.3.120.0030.01414.73
7.2.330.0150.00916.63
7.2.320.0120.00916.60
7.2.310.0100.00716.50
7.2.300.0040.01416.39
7.2.290.0130.00316.39
7.1.70.0290.00317.08
7.1.60.0170.00719.70
7.1.50.0060.01617.01
7.1.00.0030.07722.41
7.0.200.0070.00416.80
7.0.140.0070.07322.07
7.0.60.0170.07020.08
7.0.50.0030.04317.79
7.0.40.0170.07720.23
7.0.30.0330.05720.00
7.0.20.0330.05020.33
7.0.10.0130.08020.13
7.0.00.0130.08320.17
5.6.280.0000.06320.91
5.6.210.0070.08720.76
5.6.200.0000.04318.19
5.6.190.0170.07020.61
5.6.180.3030.04720.57
5.6.170.0300.07320.49
5.6.160.0030.04320.33
5.6.150.0100.04018.08
5.6.140.0000.04718.11
5.6.130.0030.08318.14
5.6.120.0030.04721.01
5.6.110.0100.04321.07
5.6.100.0070.07720.98
5.6.90.0030.05721.03
5.6.80.0170.07020.36
5.5.350.3100.04720.33
5.5.340.0030.07717.96
5.5.330.0070.04020.47
5.5.320.0330.07720.41
5.5.310.0200.05320.34
5.5.300.0030.08317.86
5.5.290.0130.04717.98
5.5.280.0100.04020.73
5.5.270.0200.05720.84
5.5.260.0000.09020.96
5.5.250.0000.09020.57
5.5.240.0130.06020.18
5.4.450.0600.03719.11
5.4.440.0630.04319.43
5.4.430.1430.03319.45
5.4.420.1470.03719.09
5.4.410.1270.03719.33
5.4.400.1370.04019.14
5.4.390.1170.06318.80
5.4.380.0330.05318.68
5.4.370.0430.05718.49
5.4.360.0400.04718.69
5.4.350.0300.05318.46
5.4.340.0370.06018.57
5.4.320.0040.03712.46
5.4.310.0060.04012.45
5.4.300.0060.03712.45
5.4.290.0070.03812.45
5.4.280.0060.03612.35
5.4.270.0060.03612.35
5.4.260.0060.03912.35
5.4.250.0050.03912.35
5.4.240.0060.03612.35
5.4.230.0090.03512.34
5.4.220.0070.03912.34
5.4.210.0050.03612.34
5.4.200.0120.04712.34
5.4.190.0090.04112.34
5.4.180.0020.04012.34
5.4.170.0070.03612.35
5.4.160.0070.03512.34
5.4.150.0080.03512.34
5.4.140.0080.03612.03
5.4.130.0080.03512.02
5.4.120.0040.03911.97
5.4.110.0040.03711.96
5.4.100.0070.03511.96
5.4.90.0030.04011.96
5.4.80.0020.04211.96
5.4.70.0050.03611.96
5.4.60.0070.03511.96
5.4.50.0060.03911.96
5.4.40.0060.03411.95
5.4.30.0080.03511.95
5.4.20.0030.03911.95
5.4.10.0060.03511.95
5.4.00.0050.04111.43
5.3.290.0100.04912.80
5.3.280.0050.03912.71
5.3.270.0060.04012.72
5.3.260.0070.04412.72
5.3.250.0090.03512.72
5.3.240.0110.03212.72
5.3.230.0050.03912.71
5.3.220.0080.03712.68
5.3.210.0050.04112.68
5.3.200.0060.03712.68
5.3.190.0080.03712.68
5.3.180.0090.03412.67
5.3.170.0050.03812.67
5.3.160.0100.03312.67
5.3.150.0080.03512.68
5.3.140.0070.03612.66
5.3.130.0090.03612.66
5.3.120.0060.03812.65
5.3.110.0070.03712.66
5.3.100.0120.04412.12
5.3.90.0080.03412.08
5.3.80.0090.03312.07
5.3.70.0060.03612.07
5.3.60.0090.04712.07
5.3.50.0090.04612.00
5.3.40.0060.04312.00
5.3.30.0060.03611.94
5.3.20.0060.03611.72
5.3.10.0040.03811.69
5.3.00.0090.03411.68
5.2.170.0040.0329.18
5.2.160.0020.0329.18
5.2.150.0030.0329.18
5.2.140.0040.0319.17
5.2.130.0090.0379.13
5.2.120.0070.0279.13
5.2.110.0040.0349.14
5.2.100.0060.0299.14
5.2.90.0010.0349.14
5.2.80.0050.0309.13
5.2.70.0020.0339.13
5.2.60.0050.0319.09
5.2.50.0030.0349.05
5.2.40.0100.0289.04
5.2.30.0080.0319.01
5.2.20.0060.0298.99
5.2.10.0070.0268.92
5.2.00.0040.0308.77
5.1.60.0060.0238.06
5.1.50.0050.0248.06
5.1.40.0060.0238.04
5.1.30.0050.0268.39
5.1.20.0050.0268.41
5.1.10.0060.0248.14
5.1.00.0060.0248.14
5.0.50.0050.0196.61
5.0.40.0040.0186.47
5.0.30.0050.0296.29
5.0.20.0050.0186.25
5.0.10.0050.0196.23
5.0.00.0050.0296.23
4.4.90.0020.0164.78
4.4.80.0050.0134.75
4.4.70.0020.0164.75
4.4.60.0020.0164.76
4.4.50.0030.0154.77
4.4.40.0010.0274.71
4.4.30.0020.0164.76
4.4.20.0060.0124.84
4.4.10.0040.0144.85
4.4.00.0030.0244.76
4.3.110.0030.0184.67
4.3.100.0020.0164.66
4.3.90.0030.0154.63
4.3.80.0000.0264.58
4.3.70.0020.0164.63
4.3.60.0040.0134.63
4.3.50.0050.0134.63
4.3.40.0050.0244.53
4.3.30.0000.0193.27
4.3.20.0010.0173.25
4.3.10.0010.0173.22
4.3.00.0170.01714.92

preferences:
45.5 ms | 401 KiB | 5 Q