3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Variable variable. $a = 'b'; $b = 'target'; var_dump($$a == $b); // Anon function with inclusion of scope. $fn = function($c) { var_dump($$c == 'target'); }; $fn($a); // I can use scope within using variable variable. $fn = fn($c) => $$c == 'target'; var_dump($fn($a)); // I can't return it though. $fn = fn($c) => $$c; var_dump($fn($a));

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.4.130.0090.00517.82
8.4.120.0130.00720.55
8.4.110.0130.00622.39
8.4.100.0160.00417.70
8.4.90.0030.00718.77
8.4.80.0080.00617.92
8.4.70.0110.00517.91
8.4.60.0110.00518.81
8.4.50.0140.00619.31
8.4.40.0060.00919.59
8.4.30.0130.00620.61
8.4.20.0080.00022.44
8.4.10.0080.01223.95
8.3.260.0100.00916.77
8.3.250.0070.01118.82
8.3.240.0030.00516.89
8.3.230.0090.00616.77
8.3.220.0090.01017.20
8.3.210.0100.00716.66
8.3.200.0060.00316.63
8.3.190.0130.00618.85
8.3.180.0110.00818.64
8.3.170.0140.00418.86
8.3.160.0160.00316.73
8.3.150.0110.00717.20
8.3.140.0040.00417.12
8.3.130.0080.00018.70
8.3.120.0030.00620.57
8.3.110.0070.00316.57
8.3.100.0060.00918.71
8.3.90.0080.00026.77
8.3.80.0110.00818.68
8.3.70.0070.00716.75
8.3.60.0090.00618.68
8.3.50.0140.00318.51
8.3.40.0060.01220.23
8.3.30.0090.00618.80
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0050.00326.16
8.2.290.0080.01020.27
8.2.280.0110.00820.37
8.2.270.0070.01117.14
8.2.260.0150.00018.25
8.2.250.0060.00317.32
8.2.240.0060.00316.77
8.2.230.0040.00420.94
8.2.220.0100.00024.06
8.2.210.0080.00026.77
8.2.200.0060.00316.63
8.2.190.0070.01018.66
8.2.180.0110.00418.31
8.2.170.0130.00618.91
8.2.160.0150.00022.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00426.16
8.2.110.0060.00320.93
8.2.100.0060.00617.91
8.2.90.0040.00418.22
8.2.80.0000.00817.97
8.2.70.0080.00017.93
8.2.60.0030.00619.25
8.2.50.0080.00018.10
8.2.40.0000.00720.67
8.2.30.0030.00518.06
8.2.20.0000.00719.22
8.2.10.0040.00717.69
8.2.00.0030.00717.63
8.1.330.0130.01020.24
8.1.320.0110.00816.43
8.1.310.0130.00318.46
8.1.300.0100.00619.78
8.1.290.0060.00330.84
8.1.280.0140.00725.92
8.1.270.0040.00424.66
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0070.00323.86
8.1.230.0070.00420.97
8.1.220.0040.00417.74
8.1.210.0030.00618.88
8.1.200.0030.00617.23
8.1.190.0000.00818.97
8.1.180.0080.00018.10
8.1.170.0040.00418.70
8.1.160.0000.00818.98
8.1.150.0040.00418.70
8.1.140.0050.00517.29
8.1.130.0000.00917.50
8.1.120.0030.00617.54
8.1.110.0080.00017.59
8.1.100.0030.00517.51
8.1.90.0090.00317.43
8.1.80.0060.00617.42
8.1.70.0130.00017.51
8.1.60.0060.00617.52
8.1.50.0030.00817.47
8.1.40.0160.00017.54
8.1.30.0000.01217.59
8.1.20.0030.00619.36
8.1.10.0040.00417.39
8.1.00.0040.00917.38
8.0.300.0020.00520.00
8.0.290.0060.00316.88
8.0.280.0030.00318.35
8.0.270.0070.00416.80
8.0.260.0120.00016.84
8.0.250.0030.00616.83
8.0.240.0000.01116.79
8.0.230.0090.00316.90
8.0.220.0040.00418.64
8.0.210.0000.00816.73
8.0.200.0090.00016.92
8.0.190.0070.00316.98
8.0.180.0000.00816.96
8.0.170.0080.00016.91
8.0.160.0050.00316.86
8.0.150.0000.00916.70
8.0.140.0030.00616.89
8.0.130.0030.00516.78
8.0.120.0050.00316.84
8.0.110.0080.00016.91
8.0.100.0000.00716.76
8.0.90.0050.00316.85
8.0.80.0020.00716.73
8.0.70.0040.00416.70
8.0.60.0040.00416.75
8.0.50.0080.00016.72
8.0.30.0000.00816.73
8.0.20.0040.00416.97
8.0.10.0040.00416.94

preferences:
75.22 ms | 403 KiB | 5 Q