3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestClass { public function baz() { echo "Worked!"; } } $foo = 'bam'; $bam = ['bar' => new TestClass()]; $output = $$foo; var_dump($$foo); // Correctly reads this var_dump(${$foo['bar']}); var_dump($$foo['bar']); // Change $$foo to $output // $$foo['bar']->baz(); // function getResult() { // return "string"; // } // echo getResult(){0};

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.0140.00416.88
8.3.50.0120.00916.56
8.3.40.0120.00918.84
8.3.30.0070.00718.89
8.3.20.0070.01320.36
8.3.10.0040.00423.64
8.3.00.0000.00921.94
8.2.180.0110.00418.17
8.2.170.0090.00922.96
8.2.160.0070.00720.55
8.2.150.0030.00524.18
8.2.140.0030.00524.66
8.2.130.0000.00820.96
8.2.120.0040.00426.35
8.2.110.0030.00620.94
8.2.100.0070.00418.16
8.2.90.0000.00919.35
8.2.80.0080.00017.97
8.2.70.0030.00617.75
8.2.60.0040.00418.04
8.2.50.0050.00318.09
8.2.40.0040.00420.55
8.2.30.0080.00419.49
8.2.20.0030.00617.86
8.2.10.0070.00018.12
8.2.00.0050.00218.03
8.1.280.0110.00725.92
8.1.270.0060.01322.19
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0060.00322.46
8.1.230.0070.00317.64
8.1.220.0030.00617.74
8.1.210.0030.00618.77
8.1.200.0030.00617.23
8.1.190.0060.00317.35
8.1.180.0060.00318.10
8.1.170.0040.00418.59
8.1.160.0040.00420.68
8.1.150.0040.00420.59
8.1.140.0040.00419.58
8.1.130.0000.00717.62
8.1.120.0040.00317.32
8.1.110.0040.00417.45
8.1.100.0030.00717.53
8.1.90.0030.00417.50
8.1.80.0000.00817.36
8.1.70.0070.00017.42
8.1.60.0090.00017.50
8.1.50.0040.00417.54
8.1.40.0000.00817.48
8.1.30.0060.00317.59
8.1.20.0000.00717.63
8.1.10.0050.00317.54
8.1.00.0030.00617.49
8.0.300.0000.00818.77
8.0.290.0050.00216.75
8.0.280.0070.00018.41
8.0.270.0000.00717.26
8.0.260.0000.00717.30
8.0.250.0000.00617.00
8.0.240.0060.00317.01
8.0.230.0030.00316.92
8.0.220.0050.00316.97
8.0.210.0000.00716.93
8.0.200.0040.00416.95
8.0.190.0030.00316.99
8.0.180.0040.00417.03
8.0.170.0000.00716.88
8.0.160.0000.00716.89
8.0.150.0040.00416.88
8.0.140.0000.00716.86
8.0.130.0000.00513.43
8.0.120.0080.00016.81
8.0.110.0040.00416.93
8.0.100.0040.00416.76
8.0.90.0040.00317.01
8.0.80.0030.01916.91
8.0.70.0000.00816.94
8.0.60.0040.00417.00
8.0.50.0050.00316.91
8.0.30.0140.00517.26
8.0.20.0100.00817.40
8.0.10.0030.00616.91
8.0.00.0090.01316.64
7.4.330.0000.00516.83
7.4.320.0070.00016.53
7.4.300.0080.00016.43
7.4.290.0000.00716.61
7.4.280.0050.00316.48
7.4.270.0040.00416.46
7.4.260.0030.00316.58
7.4.250.0000.00716.48
7.4.240.0000.00716.61
7.4.230.0000.00716.71
7.4.220.0090.00916.65
7.4.210.0090.00816.51
7.4.200.0070.00016.67
7.4.160.0130.00616.34
7.4.150.0120.00617.40
7.4.140.0150.00717.86
7.4.130.0090.00916.61
7.4.120.0120.00716.60
7.4.110.0130.00316.51
7.4.100.0120.00616.58
7.4.90.0090.00816.36
7.4.80.0070.01019.39
7.4.70.0120.01016.58
7.4.60.0130.00316.63
7.4.50.0070.00716.42
7.4.40.0080.00816.68
7.4.30.0040.01816.23
7.4.00.0080.00815.15
7.3.330.0030.00313.37
7.3.320.0030.00313.28
7.3.310.0040.00416.33
7.3.300.0030.00316.23
7.3.290.0030.00316.34
7.3.280.0100.00716.36
7.3.270.0160.00017.40
7.3.260.0120.01216.43
7.3.250.0140.00516.32
7.3.240.0100.01016.56
7.3.230.0120.00916.64
7.3.210.0080.00816.31
7.3.200.0130.00919.39
7.3.190.0060.01616.63
7.3.180.0000.01516.59
7.3.170.0090.00616.64
7.3.160.0150.00016.48
7.3.00.0040.00716.35
7.2.330.0120.00416.73
7.2.320.0000.02016.51
7.2.310.0060.01116.72
7.2.300.0070.01016.56
7.2.290.0090.01216.73
7.2.130.0090.00316.66
7.2.120.0030.00916.50
7.2.110.0110.00016.73
7.2.100.0070.00716.78
7.2.90.0070.00416.74
7.2.80.0040.00816.87
7.2.70.0000.01416.58
7.2.60.0020.01316.78
7.2.50.0070.00316.72
7.2.40.0030.01016.58
7.2.30.0000.01116.90
7.2.20.0080.00416.69
7.2.10.0070.00416.91
7.2.00.0060.00818.11
7.1.250.0040.00715.85
7.1.240.0060.00615.72
7.1.230.0040.00415.88
7.1.220.0000.01215.71
7.1.210.0030.01015.77
7.1.200.0040.00715.72
7.1.190.0060.00615.86
7.1.180.0000.00715.82
7.1.170.0100.00015.72
7.1.160.0080.00315.77
7.1.150.0000.01015.79
7.1.140.0070.00715.77
7.1.130.0030.00915.94
7.1.120.0070.01015.98
7.1.110.0100.00615.64
7.1.100.0090.00517.03
7.1.90.0030.00715.43
7.1.80.0060.00315.78
7.1.70.0010.00816.18
7.1.60.0040.01217.61
7.1.50.0030.01016.34
7.1.40.0070.00715.48
7.1.30.0000.01315.87
7.1.20.0060.00615.39
7.1.10.0030.01015.62
7.1.00.0090.03819.17
7.0.330.0110.00015.31
7.0.320.0040.00415.39
7.0.310.0070.00715.16
7.0.300.0060.00615.22
7.0.290.0060.00615.52
7.0.280.0070.00315.43
7.0.270.0090.00315.39
7.0.260.0070.00315.50
7.0.250.0040.00715.31
7.0.240.0040.00715.42
7.0.230.0070.00415.65
7.0.220.0070.00715.37
7.0.210.0060.00615.37
7.0.200.0490.00515.00
7.0.190.0070.00715.36
7.0.180.0000.00715.46
7.0.170.0070.00015.14
7.0.160.0000.00915.17
7.0.150.0040.00815.66
7.0.140.0030.00615.35
7.0.130.0030.01015.33
7.0.120.0030.00915.72
7.0.110.0060.00315.55
7.0.100.0100.00315.47
7.0.90.0100.00015.50
7.0.80.0030.01015.39
7.0.70.0050.00315.38
7.0.60.0120.02317.61
7.0.50.0050.02716.77
7.0.40.0090.01816.82
7.0.30.0120.02516.85
7.0.20.0150.03816.85
7.0.10.0160.03716.86
7.0.00.0060.04616.78
5.6.380.0090.00314.42
5.6.370.0080.00314.59
5.6.360.0040.01114.36
5.6.350.0030.00714.42
5.6.340.0100.00314.47
5.6.330.0000.01114.41
5.6.320.0060.00314.72
5.6.310.0060.00614.51
5.6.300.0060.01014.04
5.6.290.0040.00814.61
5.6.280.0050.02417.53
5.6.270.0080.00314.26
5.6.260.0070.00714.46
5.6.250.0030.00714.09
5.6.240.0050.00314.22
5.6.230.0030.00614.32
5.6.220.0070.00714.51
5.6.210.0070.04117.61
5.6.200.0090.04216.20
5.6.190.0090.02217.33
5.6.180.0200.04017.57
5.6.170.0150.02717.57
5.6.160.0020.02517.53
5.6.150.0060.04016.27
5.6.140.0050.03816.28
5.6.130.0050.02416.19
5.6.120.0040.04117.68
5.6.110.0070.03517.81
5.6.100.0050.03517.66
5.6.90.0060.03617.71
5.6.80.0050.03817.33
5.6.70.0080.00414.30
5.6.60.0090.00014.35
5.6.50.0030.00614.19
5.6.40.0060.00314.34
5.6.30.0070.00414.08
5.6.20.0040.01114.56
5.6.10.0030.00714.29
5.6.00.0030.01314.30
5.5.380.0040.00811.33
5.5.370.0060.00311.43
5.5.360.0080.00311.23
5.5.350.0080.02215.83
5.5.340.0040.02514.63
5.5.330.0020.03915.78
5.5.320.0300.03215.64
5.5.310.0120.02415.77
5.5.300.0080.03614.63
5.5.290.0000.04614.50
5.5.280.0050.03316.15
5.5.270.0050.03216.06
5.5.260.0060.03816.02
5.5.250.0000.04715.90
5.5.240.0150.03315.75
5.5.230.0030.00511.25
5.5.220.0050.00311.07
5.5.210.0000.00611.11
5.5.200.0040.00411.24
5.5.190.0030.00511.01
5.5.180.0040.00411.15
5.5.170.0070.00011.24
5.5.160.0040.00411.19
5.5.150.0060.00011.28
5.5.140.0070.00011.24
5.5.130.0060.00311.00
5.5.120.0030.00311.38
5.5.110.0030.00611.14
5.5.100.0000.00811.22
5.5.90.0040.00411.31
5.5.80.0070.00011.29
5.5.70.0030.00711.25
5.5.60.0040.00411.28
5.5.50.0120.00011.00
5.5.40.0040.00711.18
5.5.30.0060.00311.00
5.5.20.0030.00311.18
5.5.10.0000.00911.01
5.5.00.0090.00011.05

preferences:
72.09 ms | 401 KiB | 5 Q