3v4l.org

run code in 300+ PHP versions simultaneously
<?php $variableName = 'MyVariable'; $variableName .= '900'; // Create new variable with the name defined in variable $variableName ${$variableName900} = 'MyValue'; //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.43
8.3.50.0140.00522.11
8.3.40.0000.01518.63
8.3.30.0100.00319.10
8.3.20.0000.00820.16
8.3.10.0050.00321.87
8.3.00.0030.00619.05
8.2.180.0110.00718.29
8.2.170.0080.00819.04
8.2.160.0100.00322.96
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0060.00319.65
8.2.110.0060.00320.52
8.2.100.0040.00718.16
8.2.90.0050.00319.26
8.2.80.0080.00017.97
8.2.70.0030.00517.49
8.2.60.0000.00818.16
8.2.50.0040.00418.07
8.2.40.0000.00819.82
8.2.30.0020.00517.99
8.2.20.0040.00417.76
8.2.10.0070.00017.93
8.2.00.0060.00317.66
8.1.280.0130.00925.92
8.1.270.0000.00918.89
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0090.00022.18
8.1.230.0110.00019.15
8.1.220.0070.00017.74
8.1.210.0000.00818.77
8.1.200.0000.00917.34
8.1.190.0080.00017.10
8.1.180.0080.00018.10
8.1.170.0050.00318.64
8.1.160.0000.00722.04
8.1.150.0000.00818.80
8.1.140.0040.00417.44
8.1.130.0030.00317.70
8.1.120.0030.00317.39
8.1.110.0070.00017.45
8.1.100.0030.00317.44
8.1.90.0000.00717.45
8.1.80.0030.00417.29
8.1.70.0000.00817.43
8.1.60.0060.00317.53
8.1.50.0030.00617.37
8.1.40.0030.00517.50
8.1.30.0030.00617.69
8.1.20.0060.00317.48
8.1.10.0040.00417.47
8.1.00.0000.00917.26
8.0.300.0000.00818.77
8.0.290.0030.00616.75
8.0.280.0030.00318.31
8.0.270.0030.00516.93
8.0.260.0000.00617.16
8.0.250.0030.00317.00
8.0.240.0080.00016.98
8.0.230.0040.00416.93
8.0.220.0030.00316.89
8.0.210.0020.00516.95
8.0.200.0050.00216.98
8.0.190.0080.00016.89
8.0.180.0000.00816.86
8.0.170.0050.00316.92
8.0.160.0040.00416.88
8.0.150.0040.00416.96
8.0.140.0100.00316.80
8.0.130.0000.00713.38
8.0.120.0000.00717.00
8.0.110.0000.00716.91
8.0.100.0040.00416.96
8.0.90.0000.00716.86
8.0.80.0100.00716.90
8.0.70.0050.00316.95
8.0.60.0000.00716.88
8.0.50.0040.00416.92
8.0.30.0170.00616.93
8.0.20.0110.00817.40
8.0.10.0000.00717.13
8.0.00.0140.00616.81
7.4.330.0030.00315.03
7.4.320.0030.00316.50
7.4.300.0070.00016.60
7.4.290.0030.00516.58
7.4.280.0050.00316.46
7.4.270.0030.00316.51
7.4.260.0030.00316.63
7.4.250.0000.00816.48
7.4.240.0040.00316.60
7.4.230.0060.00016.68
7.4.220.0070.01116.66
7.4.210.0040.01116.64
7.4.200.0030.00316.66
7.4.160.0120.00316.52
7.4.150.0040.01417.40
7.4.140.0070.01317.86
7.4.130.0090.00816.60
7.4.120.0120.00616.34
7.4.110.0070.01116.61
7.4.100.0180.00416.39
7.4.90.0150.00416.32
7.4.80.0110.00519.39
7.4.70.0030.01316.38
7.4.60.0130.00416.46
7.4.50.0030.00316.62
7.4.40.0100.01016.44
7.4.30.0140.00716.61
7.4.00.0040.01214.86
7.3.330.0020.00213.12
7.3.320.0030.00313.11
7.3.310.0030.00316.36
7.3.300.0040.00416.13
7.3.290.0050.00816.27
7.3.280.0110.00816.26
7.3.270.0100.00717.40
7.3.260.0120.01216.33
7.3.250.0110.00516.32
7.3.240.0130.00316.41
7.3.230.0090.00616.41
7.3.210.0100.00716.30
7.3.200.0080.00816.19
7.3.190.0080.00816.43
7.3.180.0080.00816.22
7.3.170.0100.01016.32
7.3.160.0100.00616.27
7.2.330.0080.00816.34
7.2.320.0060.01216.41
7.2.310.0110.01016.46
7.2.300.0090.00916.60
7.2.290.0070.01316.48
7.2.60.0070.00316.79
7.2.00.0000.01119.48
7.1.200.0000.01415.79
7.1.100.0060.00318.05
7.1.70.0000.00817.31
7.1.60.0140.01019.46
7.1.50.0270.00834.71
7.1.00.0030.07722.31
7.0.200.0780.00014.50
7.0.140.0070.04722.00
7.0.60.0270.06720.02
7.0.50.0030.03717.89
7.0.40.0030.04320.35
7.0.30.0200.05020.02
7.0.20.0170.04020.16
7.0.10.0030.09320.19
7.0.00.0070.06020.30
5.6.280.0070.07020.78
5.6.210.0130.08020.50
5.6.200.0270.06718.21
5.6.190.0070.04020.41
5.6.180.0300.04720.39
5.6.170.0230.03320.50
5.6.160.0030.04320.55
5.6.150.0170.07018.20
5.6.140.0070.07018.15
5.6.130.0070.07718.16
5.6.120.0030.05320.89
5.6.110.0070.08721.13
5.6.100.0170.07020.88
5.6.90.0100.08720.94
5.6.80.0030.08320.40
5.5.350.4230.04320.45
5.5.340.0100.05017.98
5.5.330.0200.06720.27
5.5.320.0330.05020.29
5.5.310.0370.07020.31
5.5.300.0030.04317.95
5.5.290.0000.04318.02
5.5.280.0130.05020.64
5.5.270.0000.04320.79
5.5.260.0070.04320.86
5.5.250.0030.07020.70
5.5.240.0230.07020.23
5.4.450.2170.04719.58
5.4.440.2030.04319.50
5.4.430.2000.04319.53
5.4.420.1130.05319.14
5.4.410.0070.05319.25
5.4.400.0070.07019.22
5.4.390.1330.05319.08
5.4.380.1870.04319.09
5.4.370.1630.04018.77
5.4.360.1770.04319.23
5.4.350.1930.03718.92
5.4.340.2000.04319.13
5.4.320.2030.04319.16
5.4.310.2130.04319.13
5.4.300.1900.04018.91
5.4.290.1900.04719.09
5.4.280.0800.05019.13
5.4.270.0070.03318.73
5.4.260.0070.03319.23
5.4.250.1070.04019.09
5.4.240.1970.04319.22
5.4.230.1670.04018.91
5.4.220.1930.05318.79
5.4.210.1900.04718.90
5.4.200.1700.03719.12
5.4.190.2070.04018.90
5.4.180.1700.04018.90
5.4.170.2170.04318.79
5.4.160.1870.03719.06
5.4.150.1970.03319.22
5.4.140.0030.03716.26
5.4.130.0030.03316.27
5.4.120.0830.03316.50
5.4.110.2130.04716.38
5.4.100.1670.03316.30
5.4.90.1770.03716.34
5.4.80.2100.04716.46
5.4.70.1700.03716.05
5.4.60.1970.02716.39
5.4.50.1870.03316.43
5.4.40.1970.02716.40
5.4.30.1770.03716.38
5.4.20.1700.03716.44
5.4.10.0370.03716.32
5.4.00.0030.03715.71
5.3.290.0300.05014.54
5.3.280.0170.03714.46
5.3.270.0130.04014.55
5.3.260.0230.03014.48
5.3.250.0270.02714.54
5.3.240.0170.04014.59
5.3.230.0230.03714.68
5.3.220.0170.03714.57
5.3.210.0200.03314.61
5.3.200.0070.04714.39
5.3.190.0170.03714.51
5.3.180.0170.03714.39
5.3.170.0170.03714.50
5.3.160.0270.02714.54
5.3.150.0200.03714.51
5.3.140.0200.03314.46
5.3.130.0130.04014.36
5.3.120.0200.03314.37
5.3.110.0130.04014.36
5.3.100.0170.03713.98
5.3.90.0200.03313.92
5.3.80.0200.03313.95
5.3.70.0270.02714.03
5.3.60.0200.03014.05
5.3.50.0200.03713.78
5.3.40.0200.03013.93
5.3.30.0170.04313.81
5.3.20.0230.03713.63
5.3.10.0230.04013.64
5.3.00.0170.04313.55
5.2.170.0200.04310.99
5.2.160.0130.03011.08
5.2.150.0130.06711.23
5.2.140.0230.04311.08
5.2.130.0100.05311.04
5.2.120.0130.04010.98
5.2.110.0130.04011.18
5.2.100.0170.05311.11
5.2.90.0170.03011.15
5.2.80.0200.03311.00
5.2.70.0200.05711.11
5.2.60.0130.03010.90
5.2.50.0230.05710.95
5.2.40.0070.03311.00
5.2.30.0100.06711.13
5.2.20.0130.05010.86
5.2.10.0170.06010.94
5.2.00.0100.04310.71
5.1.60.0100.0279.92
5.1.50.0070.03710.07
5.1.40.0130.0209.87
5.1.30.0070.03010.27
5.1.20.0100.02710.25
5.1.10.0170.0509.93
5.1.00.0100.0309.98
5.0.50.0030.0278.55
5.0.40.0070.0208.26
5.0.30.0070.0308.20
5.0.20.0100.0208.07
5.0.10.0170.0338.14
5.0.00.0100.0408.14
4.4.90.0030.0177.91
4.4.80.0030.0207.91
4.4.70.0030.0207.91
4.4.60.0100.0337.91
4.4.50.0030.0237.91
4.4.40.0100.0277.91
4.4.30.0100.0277.91
4.4.20.0030.0337.91
4.4.10.0130.0277.91
4.4.00.0100.0237.91
4.3.110.0070.0307.91
4.3.100.0070.0307.91
4.3.90.0000.0177.91
4.3.80.0070.0507.91
4.3.70.0100.0307.91
4.3.60.0070.0307.91
4.3.50.0130.0237.91
4.3.40.0070.0277.91
4.3.30.0000.0337.91
4.3.20.0030.0377.91
4.3.10.0030.0307.91
4.3.00.0000.0237.91

preferences:
37.92 ms | 401 KiB | 5 Q