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" echo $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.0170.00318.12
8.3.50.0140.00422.07
8.3.40.0180.00418.58
8.3.30.0070.00718.92
8.3.20.0000.00920.13
8.3.10.0060.00323.62
8.3.00.0040.00419.02
8.2.180.0120.00616.63
8.2.170.0040.01122.96
8.2.160.0070.01122.21
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0040.01121.00
8.2.110.0030.00620.38
8.2.100.0030.00917.72
8.2.90.0100.00017.73
8.2.80.0000.00817.97
8.2.70.0040.00417.80
8.2.60.0050.00518.03
8.2.50.0030.00618.10
8.2.40.0040.00421.02
8.2.30.0000.00719.30
8.2.20.0040.00417.79
8.2.10.0020.00517.98
8.2.00.0040.00417.59
8.1.280.0110.01125.92
8.1.270.0030.00618.95
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0080.00023.95
8.1.230.0070.00419.16
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0000.00917.22
8.1.190.0040.00417.22
8.1.180.0000.00818.10
8.1.170.0080.00018.66
8.1.160.0070.00018.99
8.1.150.0000.00718.79
8.1.140.0000.00717.44
8.1.130.0000.01117.69
8.1.120.0070.00017.50
8.1.110.0040.00417.43
8.1.100.0030.00317.46
8.1.90.0050.00217.43
8.1.80.0000.00717.34
8.1.70.0050.00317.39
8.1.60.0040.00417.47
8.1.50.0040.00417.39
8.1.40.0060.00317.51
8.1.30.0000.00817.65
8.1.20.0040.00417.57
8.1.10.0080.00017.57
8.1.00.0030.00617.32
8.0.300.0000.00819.73
8.0.290.0070.00016.75
8.0.280.0030.00318.35
8.0.270.0030.00317.31
8.0.260.0030.00317.11
8.0.250.0000.00716.98
8.0.240.0000.00716.99
8.0.230.0000.00716.94
8.0.220.0000.00716.74
8.0.210.0000.00616.85
8.0.200.0000.00616.90
8.0.190.0050.00216.94
8.0.180.0070.00016.91
8.0.170.0050.00316.91
8.0.160.0000.00816.96
8.0.150.0050.00316.84
8.0.140.0040.00416.93
8.0.130.0000.00513.38
8.0.120.0040.00416.73
8.0.110.0000.00716.77
8.0.100.0040.00416.92
8.0.90.0030.00516.81
8.0.80.0100.01316.81
8.0.70.0040.00416.94
8.0.60.0070.00016.92
8.0.50.0000.00716.92
8.0.30.0100.01216.96
8.0.20.0090.00917.40
8.0.10.0000.00816.92
8.0.00.0140.00716.64
7.4.330.0020.00215.05
7.4.320.0060.00016.52
7.4.300.0060.00016.50
7.4.290.0030.00516.42
7.4.280.0000.00816.38
7.4.270.0000.00616.51
7.4.260.0060.00316.48
7.4.250.0070.00016.60
7.4.240.0030.00516.42
7.4.230.0030.00316.59
7.4.220.0090.01516.46
7.4.210.0120.00916.60
7.4.200.0000.00716.44
7.4.160.0110.01116.48
7.4.150.0110.00717.40
7.4.140.0050.01317.86
7.4.130.0120.00616.29
7.4.120.0120.00416.60
7.4.110.0110.00616.43
7.4.100.0090.00916.30
7.4.90.0090.00916.57
7.4.80.0000.01719.39
7.4.70.0120.00616.23
7.4.60.0080.00816.45
7.4.50.0030.00316.47
7.4.40.0060.01116.47
7.4.30.0070.01016.45
7.4.10.0070.00914.78
7.4.00.0080.00914.87
7.3.330.0030.00313.09
7.3.320.0050.00013.11
7.3.310.0050.00216.30
7.3.300.0060.00016.10
7.3.290.0050.00916.26
7.3.280.0090.00616.24
7.3.270.0150.00817.40
7.3.260.0180.00016.43
7.3.250.0110.00816.37
7.3.240.0060.01516.50
7.3.230.0100.01316.39
7.3.210.0130.00316.57
7.3.200.0050.01919.39
7.3.190.0100.00616.24
7.3.180.0060.00916.19
7.3.170.0110.00616.52
7.3.160.0120.00316.38
7.3.130.0090.00915.02
7.3.120.0050.01314.71
7.3.110.0050.01214.77
7.3.100.0050.00914.82
7.3.90.0030.00914.65
7.3.80.0080.00514.84
7.3.70.0080.00714.74
7.3.60.0080.00614.86
7.3.50.0100.00714.88
7.3.40.0060.00614.71
7.3.30.0040.00814.65
7.3.20.0070.00716.56
7.3.10.0070.00716.55
7.3.00.0070.00816.54
7.2.330.0100.00716.65
7.2.320.0110.00716.51
7.2.310.0090.00616.44
7.2.300.0130.00616.31
7.2.290.0070.01816.66
7.2.260.0040.01014.89
7.2.250.0030.01315.02
7.2.240.0080.00714.98
7.2.230.0060.00814.96
7.2.220.0080.00814.87
7.2.210.0060.00614.97
7.2.200.0050.00814.92
7.2.190.0080.00714.77
7.2.180.0060.00614.81
7.2.170.0070.00814.90
7.2.160.0070.00915.05
7.2.150.0050.00616.79
7.2.140.0090.00616.81
7.2.130.0060.00916.81
7.2.120.0050.00816.91
7.2.110.0070.00716.79
7.2.100.0090.00616.79
7.2.90.0060.00916.86
7.2.80.0070.00816.83
7.2.70.0070.00916.81
7.2.60.0070.00616.79
7.2.50.0100.00316.87
7.2.40.0100.00816.80
7.2.30.0070.00916.91
7.2.20.0050.00916.86
7.2.10.0090.00616.76
7.2.00.0060.00917.38
7.1.330.0030.01215.68
7.1.320.0050.00915.68
7.1.310.0050.00715.76
7.1.300.0070.00715.50
7.1.290.0060.00915.65
7.1.280.0080.00615.64
7.1.270.0040.00815.60
7.1.260.0070.00715.63
7.1.250.0030.01115.67
7.1.240.0070.00715.64
7.1.230.0040.01015.68
7.1.220.0050.00815.52
7.1.210.0050.00715.60
7.1.200.0090.00715.46
7.1.190.0070.00815.75
7.1.180.0070.00715.72
7.1.170.0030.01215.65
7.1.160.0070.00715.61
7.1.150.0030.00815.58
7.1.140.0040.01115.57
7.1.130.0050.00615.53
7.1.120.0020.01015.60
7.1.110.0030.00715.70
7.1.100.0040.00916.39
7.1.90.0060.00915.79
7.1.80.0060.00715.59
7.1.70.0060.00715.92
7.1.60.0040.01016.48
7.1.50.0050.00815.98
7.1.40.0040.00915.66
7.1.30.0030.01115.71
7.1.20.0060.00715.71
7.1.10.0060.00515.49
7.1.00.0070.02217.35
7.0.330.0050.00815.31
7.0.320.0060.00715.30
7.0.310.0030.01115.18
7.0.300.0030.00815.21
7.0.290.0070.00515.28
7.0.280.0030.00715.35
7.0.270.0050.00615.09
7.0.260.0050.00515.31
7.0.250.0030.00815.09
7.0.240.0050.00515.33
7.0.230.0060.00915.40
7.0.220.0050.00615.24
7.0.210.0040.00715.33
7.0.200.0030.00915.71
7.0.190.0070.00415.28
7.0.180.0070.00415.29
7.0.170.0030.00915.22
7.0.160.0060.00815.34
7.0.150.0060.00515.36
7.0.140.0050.02316.98
7.0.130.0080.00415.19
7.0.120.0050.00815.36
7.0.110.0090.00515.30
7.0.100.0030.01015.21
7.0.90.0060.00415.35
7.0.80.0080.00415.25
7.0.70.0050.00815.12
7.0.60.0080.02216.52
7.0.50.0040.01716.03
7.0.40.0090.02414.93
7.0.30.0100.01615.08
7.0.20.0120.02515.11
7.0.10.0060.02815.14
7.0.00.0060.02715.02
5.6.400.0060.00914.34
5.6.390.0040.01014.44
5.6.380.0060.00914.51
5.6.370.0050.00914.24
5.6.360.0100.00414.23
5.6.350.0050.00914.13
5.6.340.0030.00714.25
5.6.330.0050.00714.28
5.6.320.0060.00814.26
5.6.310.0080.00814.48
5.6.300.0040.00914.30
5.6.290.0050.00814.30
5.6.280.0060.02216.08
5.6.270.0030.01014.11
5.6.260.0050.00914.33
5.6.250.0020.00814.37
5.6.240.0040.00814.15
5.6.230.0040.00914.29
5.6.220.0060.00614.17
5.6.210.0060.01615.88
5.6.200.0070.01815.30
5.6.190.0040.02815.85
5.6.180.0100.02115.80
5.6.170.0090.01615.80
5.6.160.0020.03015.88
5.6.150.0070.02315.18
5.6.140.0080.02615.37
5.6.130.0080.02415.31
5.6.120.0070.02416.00
5.6.110.0050.02715.92
5.6.100.0080.02616.06
5.6.90.0070.02315.81
5.6.80.0050.01415.68
5.6.70.0070.00614.28
5.6.60.0070.00414.22
5.6.50.0050.00614.19
5.6.40.0050.00914.27
5.6.30.0040.00814.30
5.6.20.0040.01114.23
5.6.10.0050.00614.21
5.6.00.0080.00514.25
5.5.380.0050.00814.02
5.5.370.0080.00714.11
5.5.360.0010.00814.05
5.5.350.0160.01815.62
5.5.340.0060.01815.21
5.5.330.0090.01915.66
5.5.320.0110.01415.65
5.5.310.0140.02615.70
5.5.300.0080.02115.15
5.5.290.0040.01915.16
5.5.280.0060.02715.94
5.5.270.0090.02415.81
5.5.260.0080.01415.67
5.5.250.0030.01415.66
5.5.240.0070.02015.68
5.5.230.0040.00814.10
5.5.220.0060.00614.01
5.5.210.0070.00614.28
5.5.200.0050.00814.04
5.5.190.0070.00413.98
5.5.180.0070.00314.11
5.5.170.0100.00314.16
5.5.160.0050.00814.17
5.5.150.0060.00914.20
5.5.140.0060.00814.09
5.5.130.0040.00714.18
5.5.120.0060.00614.02
5.5.110.0060.00614.19
5.5.100.0070.00414.15
5.5.90.0050.00713.96
5.5.80.0040.01114.09
5.5.70.0040.00814.21
5.5.60.0060.01013.96
5.5.50.0040.00714.15
5.5.40.0060.00713.99
5.5.30.0080.00614.02
5.5.20.0050.00913.90
5.5.10.0070.00614.00
5.5.00.0050.01113.99
5.4.450.0030.02613.79
5.4.440.0090.01613.81
5.4.430.0120.01213.78
5.4.420.0090.01513.82
5.4.410.0070.01613.68
5.4.400.0070.01513.63
5.4.390.0080.01713.63
5.4.380.0040.02713.45
5.4.370.0100.02113.52
5.4.360.0120.02113.50
5.4.350.0130.01713.52
5.4.340.0100.02113.46
5.4.330.0020.00811.87
5.4.320.0110.01713.57
5.4.310.0070.01913.52
5.4.300.0070.01813.47
5.4.290.0080.01613.52
5.4.280.0090.02213.47
5.4.270.0040.02613.43
5.4.260.0120.01913.49
5.4.250.0110.02213.48
5.4.240.0120.01613.45
5.4.230.0100.01513.48
5.4.220.0080.01613.49
5.4.210.0100.01513.54
5.4.200.0080.01913.06
5.4.190.0080.01713.57
5.4.180.0040.02213.50
5.4.170.0060.02513.45
5.4.160.0060.02313.54
5.4.150.0070.02313.51
5.4.140.0080.02312.84
5.4.130.0140.01512.93
5.4.120.0090.01612.97
5.4.110.0100.02012.86
5.4.100.0110.01612.95
5.4.90.0080.02012.90
5.4.80.0140.01212.90
5.4.70.0070.01912.94
5.4.60.0080.02012.91
5.4.50.0130.01312.93
5.4.40.0100.02212.93
5.4.30.0090.01912.87
5.4.20.0060.01912.89
5.4.10.0050.02012.94
5.4.00.0070.01912.76
5.3.290.0170.06314.64
5.3.280.0200.05314.56
5.3.270.0230.05314.61
5.3.260.0230.06014.56
5.3.250.0300.05714.65
5.3.240.0200.05314.65
5.3.230.0300.05014.58
5.3.220.0170.05014.47
5.3.210.0300.04014.63
5.3.200.0230.04714.53
5.3.190.0230.05314.65
5.3.180.0100.06014.54
5.3.170.0130.05714.64
5.3.160.0100.05714.56
5.3.150.0230.05014.50
5.3.140.0300.04014.64
5.3.130.0200.05314.52
5.3.120.0170.07714.63
5.3.110.0270.04714.49
5.3.100.0170.05314.06
5.3.90.0200.05314.11
5.3.80.0230.05014.01
5.3.70.0170.05314.11
5.3.60.0200.05014.03
5.3.50.0270.04713.91
5.3.40.0200.05013.85
5.3.30.0100.05713.99
5.3.20.0330.05313.66
5.3.10.0170.04713.65
5.3.00.0200.05013.67
5.2.170.0070.05011.07
5.2.160.0130.04011.17
5.2.150.0130.04311.11
5.2.140.0170.04011.17
5.2.130.0100.04711.08
5.2.120.0130.04011.25
5.2.110.0130.04711.08
5.2.100.0170.04011.16
5.2.90.0170.04011.05
5.2.80.0200.04011.06
5.2.70.0100.04711.14
5.2.60.0170.04311.08
5.2.50.0200.04311.05
5.2.40.0170.04010.94
5.2.30.0100.04310.88
5.2.20.0130.04010.93
5.2.10.0130.04310.89
5.2.00.0200.03710.74
5.1.60.0130.0409.95
5.1.50.0230.04010.05
5.1.40.0170.04310.09
5.1.30.0070.05010.38
5.1.20.0200.03010.48
5.1.10.0100.03710.10
5.1.00.0200.03010.08
5.0.50.0070.0338.57
5.0.40.0070.0308.50
5.0.30.0130.0408.29
5.0.20.0070.0308.28
5.0.10.0130.0238.26
5.0.00.0170.0378.25
4.4.90.0100.0206.73
4.4.80.0100.0236.73
4.4.70.0030.0276.73
4.4.60.0030.0236.73
4.4.50.0070.0236.73
4.4.40.0100.0376.73
4.4.30.0070.0236.73
4.4.20.0070.0236.73
4.4.10.0030.0276.73
4.4.00.0030.0376.73
4.3.110.0070.0236.73
4.3.100.0070.0236.73
4.3.90.0070.0206.73
4.3.80.0000.0476.73
4.3.70.0030.0236.73
4.3.60.0070.0206.73
4.3.50.0070.0236.73
4.3.40.0100.0306.73
4.3.30.0030.0236.73
4.3.20.0030.0236.73
4.3.10.0030.0236.73
4.3.00.0000.0307.57

preferences:
69.83 ms | 401 KiB | 5 Q