3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = 'testing'; $testing = 'foo'; $array = ['bar' => 'testing']; echo ${$array['bar']} . PHP_EOL; echo $$array['bar'];

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.0090.00616.74
8.3.50.0000.01516.48
8.3.40.0070.00718.61
8.3.30.0040.01118.84
8.3.20.0060.00320.29
8.3.10.0030.00621.63
8.3.00.0030.00519.38
8.2.180.0130.00318.43
8.2.170.0100.00722.96
8.2.160.0100.00720.32
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00419.36
8.2.120.0070.00026.35
8.2.110.0100.00020.99
8.2.100.0040.00718.16
8.2.90.0080.00019.05
8.2.80.0050.00517.97
8.2.70.0050.00317.75
8.2.60.0040.00418.16
8.2.50.0080.00018.10
8.2.40.0000.00720.64
8.2.30.0000.00821.08
8.2.20.0040.00418.10
8.2.10.0030.00517.93
8.2.00.0000.00717.93
8.1.280.0120.00325.92
8.1.270.0040.00422.20
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0060.00323.92
8.1.230.0100.00019.02
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0040.00417.35
8.1.190.0030.00617.34
8.1.180.0040.00418.10
8.1.170.0070.00018.82
8.1.160.0070.00018.91
8.1.150.0000.00820.68
8.1.140.0030.00719.57
8.1.130.0030.00318.76
8.1.120.0040.00417.36
8.1.110.0000.01017.41
8.1.100.0050.00217.50
8.1.90.0040.00417.45
8.1.80.0070.00017.50
8.1.70.0040.00417.34
8.1.60.0050.00217.49
8.1.50.0000.00817.35
8.1.40.0040.00417.52
8.1.30.0040.00417.58
8.1.20.0000.00817.67
8.1.10.0000.00817.61
8.1.00.0040.00417.54
8.0.300.0040.00418.77
8.0.290.0070.00016.88
8.0.280.0040.00418.40
8.0.270.0000.00717.32
8.0.260.0060.00016.87
8.0.250.0000.00816.95
8.0.240.0040.00417.04
8.0.230.0000.00717.07
8.0.220.0030.00316.89
8.0.210.0000.00716.90
8.0.200.0000.00816.93
8.0.190.0000.00817.01
8.0.180.0070.00017.02
8.0.170.0080.00016.99
8.0.160.0000.00716.98
8.0.150.0070.00016.93
8.0.140.0000.00716.76
8.0.130.0030.00313.38
8.0.120.0050.00316.96
8.0.110.0070.00016.91
8.0.100.0000.00716.73
8.0.90.0040.00416.98
8.0.80.0150.00616.97
8.0.70.0000.00716.79
8.0.60.0000.00716.95
8.0.50.0040.00417.01
8.0.30.0080.01017.06
8.0.20.0080.01017.40
8.0.10.0040.00417.13
8.0.00.0090.00916.73
7.4.330.0050.00315.55
7.4.320.0030.00316.51
7.4.300.0030.00316.39
7.4.290.0070.00016.63
7.4.280.0060.00316.50
7.4.270.0000.00716.61
7.4.260.0000.00716.61
7.4.250.0030.00316.55
7.4.240.0030.00316.49
7.4.230.0040.00416.59
7.4.220.0100.00716.40
7.4.210.0030.01716.60
7.4.200.0030.00316.41
7.4.160.0080.01116.57
7.4.150.0110.00717.40
7.4.140.0140.00817.86
7.4.130.0100.01016.52
7.4.120.0040.01416.48
7.4.110.0070.01016.46
7.4.100.0080.00816.66
7.4.90.0070.01016.48
7.4.80.0060.01119.39
7.4.70.0060.01516.70
7.4.60.0070.01016.36
7.4.50.0000.01516.64
7.4.40.0120.00916.54
7.4.30.0100.00616.57
7.4.00.0110.00814.85
7.3.330.0000.00513.02
7.3.320.0030.00313.20
7.3.310.0030.00316.20
7.3.300.0060.00016.34
7.3.290.0080.00516.35
7.3.280.0090.00816.34
7.3.270.0160.00617.40
7.3.260.0120.00816.46
7.3.250.0100.00816.55
7.3.240.0130.00416.50
7.3.230.0090.01316.39
7.3.210.0170.00016.45
7.3.200.0040.01216.55
7.3.190.0090.01216.47
7.3.180.0120.00316.54
7.3.170.0100.00616.42
7.3.160.0060.00916.40
7.3.120.0130.00615.06
7.3.110.0030.01114.85
7.3.100.0120.00314.55
7.3.90.0060.00614.77
7.3.80.0060.00614.76
7.3.70.0040.00814.93
7.3.60.0040.01114.75
7.3.50.0060.00914.86
7.3.40.0030.00615.01
7.3.30.0030.00714.95
7.3.20.0060.01016.37
7.3.10.0070.00716.61
7.3.00.0060.00616.39
7.2.330.0070.01316.33
7.2.320.0120.00616.77
7.2.310.0070.01316.83
7.2.300.0100.01316.80
7.2.290.0130.00716.70
7.2.250.0000.01414.98
7.2.240.0030.01615.25
7.2.230.0060.00914.94
7.2.220.0040.00815.20
7.2.210.0090.00614.84
7.2.200.0100.00314.95
7.2.190.0000.01515.02
7.2.180.0110.00315.19
7.2.170.0000.01414.85
7.2.80.0040.00816.61
7.2.60.0000.01416.67
7.2.00.0040.00919.23
7.1.330.0040.01215.70
7.1.320.0060.00615.87
7.1.310.0030.01015.98
7.1.300.0030.00515.68
7.1.290.0040.00915.66
7.1.280.0130.00015.97
7.1.270.0060.00315.75
7.1.260.0040.01115.80
7.1.200.0080.00815.85
7.1.100.0000.01118.28
7.1.70.0090.00617.13
7.1.60.0140.02134.96
7.1.50.0160.01334.50
7.1.40.0250.00634.59
7.1.30.0260.00734.40
7.1.20.0070.02834.33
7.1.10.0120.00316.61
7.1.00.0100.00616.57
7.0.200.0000.01516.91
7.0.190.0140.00616.89
7.0.180.0060.00916.35
7.0.170.0060.01116.25
7.0.160.0030.01216.15
7.0.150.0040.01116.13
7.0.140.0060.00916.33
7.0.130.0130.00316.66
7.0.120.0060.00916.53
7.0.110.0140.00316.18
7.0.100.0070.01416.50
7.0.90.0060.01116.30
7.0.80.0070.01016.24
7.0.70.0000.01616.39
7.0.60.0100.00616.11
7.0.50.0060.00916.25
7.0.40.0090.00916.43
7.0.30.0100.00716.35
7.0.20.0110.00616.32
7.0.10.0060.01016.46
7.0.00.0030.01316.59

preferences:
48.26 ms | 401 KiB | 5 Q