3v4l.org

run code in 300+ PHP versions simultaneously
<?php $uppercase = new class { public function __get(string $field): string { return strtoupper($field); } }; $x = "Hello, {$uppercase->{'world'}}"; echo $x;

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.5.30.0070.01120.09
8.5.20.0090.00820.14
8.5.10.0060.00222.06
8.5.00.0120.00919.87
8.4.180.0130.00919.69
8.4.170.0140.00820.48
8.4.160.0150.00823.92
8.4.150.0050.00716.87
8.4.140.0130.00817.68
8.4.130.0120.00917.37
8.4.120.0100.00820.52
8.4.110.0100.00618.65
8.4.100.0140.00718.61
8.4.90.0110.00920.53
8.4.80.0050.00418.86
8.4.70.0120.00817.88
8.4.60.0050.00318.97
8.4.50.0120.00818.05
8.4.40.0090.01019.52
8.4.30.0040.00420.52
8.4.20.0100.01018.00
8.4.10.0090.00318.51
8.3.300.0120.00820.76
8.3.290.0090.01020.95
8.3.280.0150.00718.40
8.3.270.0130.00716.66
8.3.260.0030.00616.37
8.3.250.0130.00617.01
8.3.240.0130.00716.43
8.3.230.0110.00916.57
8.3.220.0140.00618.84
8.3.210.0120.00616.80
8.3.200.0040.00516.60
8.3.190.0030.00518.93
8.3.180.0090.00719.08
8.3.170.0100.01016.43
8.3.160.0090.01016.44
8.3.150.0020.00517.19
8.3.140.0040.00416.63
8.3.130.0080.00018.56
8.3.120.0050.00320.74
8.3.110.0030.00620.94
8.3.100.0060.00316.49
8.3.90.0060.00926.77
8.3.80.0030.00618.31
8.3.70.0070.00716.58
8.3.60.0140.00716.63
8.3.50.0100.01020.00
8.3.40.0090.00919.04
8.3.30.0080.00619.39
8.3.20.0080.00024.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.300.0100.01122.26
8.2.290.0040.00516.50
8.2.280.0110.00818.28
8.2.270.0070.01017.08
8.2.260.0040.00418.95
8.2.250.0030.00616.88
8.2.240.0050.00518.96
8.2.230.0060.00322.58
8.2.220.0090.00024.06
8.2.210.0060.01226.77
8.2.200.0080.00316.50
8.2.190.0080.01516.58
8.2.180.0170.00325.92
8.2.170.0070.00719.08
8.2.160.0070.00722.96
8.2.150.0000.00725.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00726.16
8.2.110.0060.00322.13
8.2.100.0040.00717.78
8.2.90.0060.00319.23
8.2.80.0050.00317.97
8.2.70.0050.00317.50
8.2.60.0050.00317.63
8.2.50.0040.00417.98
8.2.40.0040.00417.78
8.2.30.0000.00718.33
8.2.20.0000.00720.38
8.2.10.0000.00718.14
8.2.00.0050.00219.12
8.1.340.0150.00817.69
8.1.330.0110.00815.97
8.1.320.0050.00517.84
8.1.310.0090.00016.53
8.1.300.0160.00015.92
8.1.290.0000.00930.84
8.1.280.0140.00025.92
8.1.270.0080.00023.99
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0060.00322.55
8.1.230.0120.00017.83
8.1.220.0050.00317.77
8.1.210.0080.00018.77
8.1.200.0040.00417.35
8.1.190.0000.00817.36
8.1.180.0000.00918.10
8.1.170.0080.00017.62
8.1.160.0050.00320.58
8.1.150.0000.00718.64
8.1.140.0060.00317.32
8.1.130.0030.00318.95
8.1.120.0000.00717.43
8.1.110.0040.00417.53
8.1.100.0040.00417.34
8.1.90.0000.00817.50
8.1.80.0000.01017.46
8.1.70.0000.00717.37
8.1.60.0040.00417.63
8.1.50.0030.00517.45
8.1.40.0200.00017.46
8.1.30.0220.00317.52
8.1.20.0180.00617.57
8.1.10.0200.00817.55
8.1.00.0230.00317.39
8.0.300.0050.00218.77
8.0.290.0000.00816.75
8.0.280.0040.00418.38
8.0.270.0050.00216.81
8.0.260.0030.00318.35
8.0.250.0080.00016.99
8.0.240.0070.00016.85
8.0.230.0080.00016.80
8.0.220.0000.00716.88
8.0.210.0030.00316.86
8.0.200.0000.00716.83
8.0.190.0040.00417.01
8.0.180.0000.00816.91
8.0.170.0000.00716.83
8.0.160.0100.00316.80
8.0.150.0050.00816.79
8.0.140.0140.00216.75
8.0.130.0100.00316.60
8.0.120.0120.00316.75
8.0.110.0100.00716.72
8.0.100.0170.00016.64
8.0.90.0170.00016.86
8.0.80.0160.00516.84
8.0.70.0140.00516.73
8.0.60.0150.00716.82
8.0.50.0140.00716.71
8.0.30.0120.00716.70
8.0.20.0110.00916.71
8.0.10.0170.00316.94
7.4.330.0030.00315.55
7.4.320.0060.00016.58
7.4.300.0000.00816.48
7.4.290.0000.00716.57
7.4.280.0160.00616.39
7.4.270.0120.00916.47
7.4.260.0140.00716.48
7.4.250.0140.00916.54
7.4.240.0130.00516.35
7.4.230.0000.01916.46
7.4.220.0170.00316.39
7.4.210.0120.00616.54
7.4.200.0090.00316.19
7.4.190.0070.00716.48
7.4.180.0090.00316.40
7.4.160.0120.00316.40
7.4.150.0180.00016.53
7.4.140.0060.01016.38
7.4.130.0090.00516.31
7.4.120.0160.00016.09
7.4.110.0080.00816.52
7.4.100.0090.00916.38
7.4.90.0160.00316.37
7.4.80.0110.00416.39
7.4.70.0160.00316.30
7.4.60.0100.01016.50
7.4.50.0160.00516.29
7.4.40.0180.00016.30
7.4.30.0120.00616.29
7.4.20.0150.00516.38
7.4.10.0110.00716.53
7.4.00.0190.00016.50

preferences:
46.03 ms | 1239 KiB | 5 Q