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'});

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.0150.00618.55
8.3.50.0080.00816.57
8.3.40.0070.00718.77
8.3.30.0090.00918.41
8.3.20.0110.00418.30
8.3.10.0040.00420.44
8.3.00.0040.00417.38
8.2.180.0120.00916.50
8.2.170.0110.00422.96
8.2.160.0140.00022.26
8.2.150.0080.00024.18
8.2.140.0070.00724.66
8.2.130.0000.00726.16
8.2.120.0000.00719.77
8.2.110.0030.00720.38
8.2.100.0110.00017.78
8.2.90.0080.00019.05
8.2.80.0080.00017.97
8.2.70.0060.00317.63
8.2.60.0030.00618.04
8.2.50.0000.00818.07
8.2.40.0080.00018.22
8.2.30.0080.00018.18
8.2.20.0050.00217.70
8.2.10.0020.00517.68
8.2.00.0030.00617.55
8.1.280.0090.00925.92
8.1.270.0000.00823.99
8.1.260.0040.00426.35
8.1.250.0090.00028.09
8.1.240.0090.00022.19
8.1.230.0000.01117.42
8.1.220.0000.00817.76
8.1.210.0030.00518.77
8.1.200.0060.00317.13
8.1.190.0000.00717.41
8.1.180.0050.00318.10
8.1.170.0000.00818.91
8.1.160.0000.00818.91
8.1.150.0000.00718.71
8.1.140.0040.00417.36
8.1.130.0070.00017.79
8.1.120.0040.00417.36
8.1.110.0050.00317.46
8.1.100.0060.00317.48
8.1.90.0040.00417.50
8.1.80.0040.00417.34
8.1.70.0030.00317.39
8.1.60.0000.00717.45
8.1.50.0040.00417.47
8.1.40.0040.00417.41
8.1.30.0040.00417.63
8.1.20.0090.00017.62
8.1.10.0040.00417.44
8.1.00.0050.00317.27
8.0.300.0030.00518.77
8.0.290.0000.00816.63
8.0.280.0030.00318.43
8.0.270.0030.00317.25
8.0.260.0030.00318.62
8.0.250.0000.00716.84
8.0.240.0040.00417.01
8.0.230.0000.00716.83
8.0.220.0000.00716.78
8.0.210.0040.00416.88
8.0.200.0000.00616.99
8.0.190.0000.00716.96
8.0.180.0000.00816.91
8.0.170.0060.00316.93
8.0.160.0040.00416.77
8.0.150.0000.00816.88
8.0.140.0030.00716.84
8.0.130.0000.00513.28
8.0.120.0030.00616.81
8.0.110.0050.00216.86
8.0.100.0050.00216.74
8.0.90.0000.00816.98
8.0.80.0150.00216.87
8.0.70.0020.00516.76
8.0.60.0050.00216.68
8.0.50.0000.00816.90
8.0.30.0140.00616.92
8.0.20.0080.01017.07
8.0.10.0040.00416.83
8.0.00.0120.00616.76
7.4.330.0020.00214.65
7.4.320.0000.00616.64
7.4.300.0040.00416.40
7.4.290.0070.00016.43
7.4.280.0060.00316.60
7.4.270.0030.00316.63
7.4.260.0050.00013.19
7.4.250.0030.00516.63
7.4.240.0070.00016.60
7.4.230.0000.00816.62
7.4.220.0110.00716.38
7.4.210.0050.00916.47
7.4.200.0030.00316.31
7.4.190.0030.00316.50
7.4.160.0130.01016.60
7.4.150.0090.00917.07
7.4.140.0060.01117.20
7.4.130.0090.00716.58
7.4.120.0090.00716.38
7.4.110.0060.01216.38
7.4.100.0100.01016.44
7.4.90.0100.00716.36
7.4.80.0070.01018.80
7.4.70.0110.01116.36
7.4.60.0060.00916.48
7.4.50.0000.00716.41
7.4.40.0060.00622.27
7.4.30.0030.01216.56
7.4.00.0100.00714.88
7.3.330.0030.00313.11
7.3.320.0050.00012.90
7.3.310.0050.00316.29
7.3.300.0030.00316.11
7.3.290.0080.00516.26
7.3.280.0040.01516.18
7.3.270.0090.00917.07
7.3.260.0080.01318.24
7.3.250.0110.00816.22
7.3.240.0080.00916.18
7.3.230.0100.01316.45
7.3.210.0030.01316.33
7.3.200.0080.00819.39
7.3.190.0090.00816.24
7.3.180.0060.01516.20
7.3.170.0090.00816.27
7.3.160.0160.00616.14
7.3.120.0040.00814.93
7.3.10.0080.00516.51
7.3.00.0060.00416.51
7.2.330.0060.01216.18
7.2.320.0130.01016.16
7.2.310.0060.01316.59
7.2.300.0090.00616.54
7.2.290.0060.01816.27
7.2.130.0070.00516.66
7.2.120.0060.00816.78
7.2.110.0100.00416.67
7.2.100.0050.00616.78
7.2.90.0080.00416.85
7.2.80.0090.00516.70
7.2.70.0060.00716.79
7.2.60.0050.00716.83
7.2.50.0060.00816.78
7.2.40.0070.00416.82
7.2.30.0060.00716.65
7.2.20.0060.00916.61
7.2.10.0030.01016.84
7.2.00.0080.00516.61
7.1.250.0020.00715.75
7.1.240.0030.00715.88
7.1.230.0040.00615.71
7.1.220.0060.00515.59
7.1.210.0040.00815.75
7.1.200.0070.00415.83
7.1.190.0060.00515.64
7.1.180.0060.00515.67
7.1.170.0030.01015.75
7.1.160.0030.01015.77
7.1.150.0040.00415.74
7.1.140.0070.00315.75
7.1.130.0050.00415.75
7.1.120.0020.01115.80
7.1.110.0050.00515.74
7.1.100.0060.00515.84
7.1.90.0060.00515.62
7.1.80.0100.00515.76
7.1.70.0030.00716.23
7.1.60.0030.00816.90
7.1.50.0040.00916.13
7.1.40.0060.00615.97
7.1.30.0020.01015.69
7.1.20.0030.01015.72
7.1.10.0110.00515.68
7.1.00.0050.02917.98
7.0.330.0000.00915.34
7.0.320.0040.00415.19
7.0.310.0060.00515.30
7.0.300.0070.00515.30
7.0.290.0060.00515.11
7.0.280.0050.00715.42
7.0.270.0050.00915.09
7.0.260.0080.00515.38
7.0.250.0060.00415.32
7.0.240.0060.00615.54
7.0.230.0060.00515.18
7.0.220.0050.00315.32
7.0.210.0080.00515.38
7.0.200.0050.00715.56
7.0.190.0050.00515.32
7.0.180.0050.00415.52
7.0.170.0070.00715.12
7.0.160.0050.00615.30
7.0.150.0050.00615.41
7.0.140.0060.02817.58
7.0.130.0020.00915.55
7.0.120.0050.00515.24
7.0.110.0060.00915.47
7.0.100.0050.00615.30
7.0.90.0000.01115.32
7.0.80.0030.00915.47
7.0.70.0070.00515.41
7.0.60.0020.02016.88
7.0.50.0080.02916.24
7.0.40.0070.02714.90
7.0.30.0030.02514.93
7.0.20.0030.03214.80
7.0.10.0050.02914.79
7.0.00.0080.01714.82
5.6.380.0050.00814.31
5.6.370.0070.00414.17
5.6.360.0040.01014.32
5.6.350.0020.01014.10
5.6.340.0070.01013.99
5.6.330.0020.01114.26
5.6.320.0020.01014.26
5.6.310.0070.00514.34
5.6.300.0040.00714.39
5.6.290.0040.00614.24
5.6.280.0080.00214.25
5.6.270.0070.00514.25
5.6.260.0060.00614.32
5.6.250.0030.00814.21
5.6.240.0070.00214.08
5.6.230.0080.00514.34
5.6.220.0020.00714.22
5.6.210.0050.03116.25
5.6.200.0020.03015.54
5.6.190.0040.02815.44
5.6.180.0060.01815.56
5.6.170.0040.03215.45
5.6.160.0060.03215.51
5.6.150.0090.02815.36
5.6.140.0040.03315.57
5.6.130.0040.01915.69
5.6.120.0040.02315.55
5.6.110.0060.03215.54
5.6.100.0080.03215.57
5.6.90.0070.02915.41
5.6.80.0070.02915.40
5.6.70.0100.02515.14
5.6.60.0040.02215.25
5.6.50.0060.03115.35
5.6.40.0040.03515.24
5.6.30.0070.01815.27
5.6.20.0070.02915.17
5.6.10.0050.03515.35
5.6.00.0080.02715.14
5.5.380.0050.00510.86
5.5.370.0060.00210.89
5.5.360.0070.00210.95
5.5.350.0080.01414.27
5.5.340.0070.02113.38
5.5.330.0050.02013.33
5.5.320.0050.01413.28
5.5.310.0060.02913.28
5.5.300.0060.01813.34
5.5.290.0070.02813.35
5.5.280.0040.03313.36
5.5.270.0040.02213.47
5.5.260.0040.02613.35
5.5.250.0060.02813.33
5.5.240.0070.02113.06
5.5.230.0080.02913.09
5.5.220.0010.02513.13
5.5.210.0060.01813.07
5.5.200.0020.02813.13
5.5.190.0040.02613.07
5.5.180.0040.02713.07
5.5.170.0020.00711.02
5.5.160.0020.02813.14
5.5.150.0030.02713.08
5.5.140.0060.02913.09
5.5.130.0060.02713.14
5.5.120.0100.02413.14
5.5.110.0060.02713.09
5.5.100.0080.02313.11
5.5.90.0030.02412.99
5.5.80.0020.02713.12
5.5.70.0050.02913.08
5.5.60.0100.02013.07
5.5.50.0080.01513.01
5.5.40.0070.03013.12
5.5.30.0060.02513.03
5.5.20.0060.02613.10
5.5.10.0060.02213.00
5.5.00.0060.02212.98
5.4.450.0080.02713.72
5.4.440.0090.02213.65
5.4.430.0050.02113.75
5.4.420.0040.03113.81
5.4.410.0050.02413.88
5.4.400.0040.02713.64
5.4.390.0070.02713.65
5.4.380.0060.02813.72
5.4.370.0060.02213.66
5.4.360.0050.03213.76
5.4.350.0010.03113.70
5.4.340.0080.02613.72
5.4.330.0030.00410.76
5.4.320.0040.02013.58
5.4.310.0040.02613.62
5.4.300.0130.02013.61
5.4.290.0070.02913.74
5.4.280.0060.02713.63
5.4.270.0030.02513.58
5.4.260.0060.03113.64
5.4.250.0040.02213.51
5.4.240.0080.01913.62
5.4.230.0060.03113.70
5.4.220.0020.03313.64
5.4.210.0060.02113.80
5.4.200.0070.01513.54
5.4.190.0080.02513.57
5.4.180.0080.01713.67
5.4.170.0040.03213.63
5.4.160.0040.02613.62
5.4.150.0060.02313.67
5.4.140.0030.02212.79
5.4.130.0070.02612.66
5.4.120.0060.02712.68
5.4.110.0040.02912.72
5.4.100.0060.02012.70
5.4.90.0030.01712.69
5.4.80.0050.02712.79
5.4.70.0040.01612.72
5.4.60.0070.01612.73
5.4.50.0070.02512.80
5.4.40.0060.02512.77
5.4.30.0060.02812.65
5.4.20.0010.02412.74
5.4.10.0030.01912.80
5.4.00.0050.02312.64
5.3.290.0050.02812.01
5.3.280.0070.02711.97
5.3.270.0030.02712.09
5.3.260.0020.02512.00
5.3.250.0080.02211.97
5.3.240.0090.01811.95
5.3.230.0080.02012.00
5.3.220.0070.02011.95
5.3.210.0070.02811.96
5.3.200.0030.03111.99
5.3.190.0070.02412.01
5.3.180.0070.02912.00
5.3.170.0050.02212.04
5.3.160.0050.02112.04
5.3.150.0060.02912.01
5.3.140.0090.01412.02
5.3.130.0060.01611.94
5.3.120.0020.01912.04
5.3.110.0020.02312.00
5.3.100.0050.01711.79
5.3.90.0050.02511.84
5.3.80.0070.01711.81
5.3.70.0050.02111.79
5.3.60.0070.02511.85
5.3.50.0030.02311.79
5.3.40.0020.02411.79
5.3.30.0040.01711.72
5.3.20.0030.02911.68
5.3.10.0030.02611.64
5.3.00.0040.02411.63
5.2.170.0040.01110.82
5.2.160.0050.02210.77
5.2.150.0070.02110.82
5.2.140.0040.02510.82
5.2.130.0040.02210.80
5.2.120.0040.01810.80
5.2.110.0070.01210.80
5.2.100.0080.02010.80
5.2.90.0030.02410.81
5.2.80.0060.02310.80
5.2.70.0060.02010.80
5.2.60.0010.02010.72
5.2.50.0050.02010.79
5.2.40.0030.02310.77
5.2.30.0020.01610.76
5.2.20.0020.01510.72
5.2.10.0060.01710.74
5.2.00.0040.02210.69
5.1.60.0030.01410.43
5.1.50.0020.01210.43
5.1.40.0090.01610.43
5.1.30.0020.02410.60
5.1.20.0030.02310.56
5.1.10.0030.01910.51
5.1.00.0040.02110.44
5.0.50.0020.0159.97
5.0.40.0010.0159.88
5.0.30.0050.0189.82
5.0.20.0030.0079.87
5.0.10.0010.0199.85
5.0.00.0040.0189.83
4.4.90.0010.0139.71
4.4.80.0020.0089.71
4.4.70.0020.0079.71
4.4.60.0010.0079.71
4.4.50.0030.0129.71
4.4.40.0040.0199.71
4.4.30.0020.0139.71
4.4.20.0030.0149.71
4.4.10.0040.0129.71
4.4.00.0030.0219.71
4.3.110.0050.0069.71
4.3.100.0000.0099.71
4.3.90.0010.0099.71
4.3.80.0010.0179.71
4.3.70.0050.0079.71
4.3.60.0010.0149.71
4.3.50.0020.0149.71
4.3.40.0020.0159.71
4.3.30.0010.0149.71
4.3.20.0000.0169.71
4.3.10.0010.0179.71
4.3.00.0010.0139.71

preferences:
39.29 ms | 401 KiB | 5 Q