3v4l.org

run code in 300+ PHP versions simultaneously
<?php class User { public $username; public function __construct(string $username) { $this->username = $username; } } $users = [ new User('user 1'), new User('user 2'), new User('user 3'), ]; print_r(array_column($users, 'username'));

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.40.0070.00718.69
8.3.30.0120.00318.71
8.3.20.0070.00021.94
8.3.10.0040.00421.76
8.3.00.0050.00319.56
8.2.170.0090.00922.96
8.2.160.0100.00319.37
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00422.25
8.2.120.0070.00026.35
8.2.110.0040.00422.25
8.2.100.0090.00318.16
8.2.90.0000.00818.08
8.2.80.0040.00417.97
8.2.70.0080.00017.93
8.2.60.0040.00418.16
8.2.50.0050.00318.10
8.2.40.0050.00320.47
8.2.30.0040.00419.31
8.2.20.0040.00418.03
8.2.10.0070.00017.92
8.2.00.0000.00817.96
8.1.270.0070.00023.92
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0090.00017.36
8.1.230.0040.00820.96
8.1.220.0060.00317.74
8.1.210.0060.00318.77
8.1.200.0030.00617.48
8.1.190.0080.00017.22
8.1.180.0000.00818.10
8.1.170.0030.00718.64
8.1.160.0000.00718.81
8.1.150.0040.00418.90
8.1.140.0000.00719.49
8.1.130.0080.00018.81
8.1.120.0040.00417.47
8.1.110.0040.00417.46
8.1.100.0050.00317.50
8.1.90.0000.00817.34
8.1.80.0040.00417.53
8.1.70.0070.00017.32
8.1.60.0030.00617.62
8.1.50.0000.00817.42
8.1.40.0020.00517.44
8.1.30.0030.00717.52
8.1.20.0000.00817.48
8.1.10.0020.00517.48
8.1.00.0040.00817.49
8.0.300.0040.00421.46
8.0.290.0050.00316.63
8.0.280.0070.00018.45
8.0.270.0000.00817.24
8.0.260.0060.00317.25
8.0.250.0000.00716.86
8.0.240.0060.00316.95
8.0.230.0030.00316.87
8.0.220.0100.00717.47
8.0.210.0030.00516.85
8.0.200.0000.00616.93
8.0.190.0040.00416.84
8.0.180.0000.00816.90
8.0.170.0000.00716.96
8.0.160.0000.00716.93
8.0.150.0000.00716.73
8.0.140.0050.00316.82
8.0.130.0000.00613.29
8.0.120.0040.00416.86
8.0.110.0000.00716.98
8.0.100.0090.00016.95
8.0.90.0000.00716.86
8.0.80.0080.00816.94
8.0.70.0000.00716.77
8.0.60.0040.00416.71
8.0.50.0040.00416.93
8.0.30.0130.00417.01
8.0.20.0120.00617.41
8.0.10.0050.00316.96
8.0.00.0070.01116.76
7.4.330.0000.00515.55
7.4.320.0000.00716.46
7.4.300.0000.00616.59
7.4.290.0070.00016.39
7.4.280.0070.00016.50
7.4.270.0000.00716.63
7.4.260.0000.00716.61
7.4.250.0030.00316.55
7.4.240.0000.00816.52
7.4.230.0070.00016.39
7.4.220.0030.01516.68
7.4.210.0120.00916.46
7.4.200.0030.00316.43
7.4.160.0130.00616.42
7.4.150.0040.01417.40
7.4.140.0110.00817.86
7.4.130.0090.01216.46
7.4.120.0110.00716.57
7.4.110.0130.00916.49
7.4.100.0110.00716.46
7.4.90.0090.00916.62
7.4.80.0220.00319.39
7.4.70.0070.01016.39
7.4.60.0100.01316.40
7.4.50.0030.00916.35
7.4.40.0080.00816.54
7.4.30.0030.01416.64
7.4.10.0040.01416.54
7.4.00.0070.00915.58
7.3.330.0070.00013.13
7.3.320.0050.00013.16
7.3.310.0070.00016.12
7.3.300.0040.00416.31
7.3.290.0090.00716.31
7.3.280.0080.01016.29
7.3.270.0190.00317.40
7.3.260.0110.00616.47
7.3.250.0090.01016.32
7.3.240.0130.00616.41
7.3.230.0100.00716.21
7.3.210.0030.01216.61
7.3.200.0150.00316.27
7.3.190.0030.01316.21
7.3.180.0100.01016.46
7.3.170.0000.01616.27
7.3.160.0100.01016.39
7.3.130.0030.01516.35
7.3.120.0070.00716.61
7.3.110.0000.01416.47
7.3.100.0130.00316.20
7.3.90.0080.00416.38
7.3.80.0090.00316.43
7.3.70.0070.00716.12
7.3.60.0030.00915.38
7.3.50.0060.00915.45
7.3.40.0040.01216.39
7.3.30.0040.01216.37
7.3.20.0120.00017.96
7.3.10.0030.01018.07
7.3.00.0100.00318.16
7.2.330.0040.01316.27
7.2.320.0090.01416.70
7.2.310.0060.01916.66
7.2.300.0110.00616.63
7.2.290.0140.00816.30
7.2.260.0110.01116.60
7.2.250.0040.01816.64
7.2.240.0040.01416.38
7.2.230.0060.01216.34
7.2.220.0000.01816.56
7.2.210.0030.01416.24
7.2.200.0100.01016.38
7.2.190.0090.00916.63
7.2.180.0070.00416.54
7.2.170.0030.01016.52
7.2.160.0040.01416.50
7.2.150.0120.00018.30
7.2.140.0120.00418.20
7.2.130.0070.00718.20
7.2.120.0030.00918.34
7.2.110.0040.00818.12
7.2.100.0080.00418.17
7.2.90.0090.00618.18
7.2.80.0030.01318.23
7.2.70.0070.00718.04
7.2.60.0070.00717.60
7.2.50.0030.01218.25
7.2.40.0100.00318.33
7.2.30.0090.01217.99
7.2.20.0100.00718.49
7.2.10.0090.01218.67
7.2.00.0080.00818.81
7.1.330.0060.00617.40
7.1.320.0090.00617.18
7.1.310.0060.00917.20
7.1.300.0060.01217.19
7.1.290.0000.00917.15
7.1.280.0040.01117.35
7.1.270.0040.01117.32
7.1.260.0070.00717.26
7.1.250.0070.00317.24
7.1.240.0070.00717.20
7.1.230.0040.00817.41
7.1.220.0000.00817.22
7.1.210.0110.00717.28
7.1.200.0050.00716.42
7.1.190.0030.01017.34
7.1.180.0060.00917.23
7.1.170.0110.00617.22
7.1.160.0030.01017.27
7.1.150.0070.01217.26
7.1.140.0110.00717.57
7.1.130.0110.01417.56
7.1.120.0060.01017.64
7.1.110.0050.01317.24
7.1.100.0070.01217.13
7.1.90.0110.00617.27
7.1.80.0080.00817.19
7.1.70.0160.01016.30
7.1.60.0270.01225.18
7.1.50.0250.01025.04
7.1.40.1750.01224.81
7.1.30.0260.01124.94
7.1.20.0330.01124.78
7.1.10.0200.00815.93
7.1.00.0190.00715.92
7.0.330.0090.00316.82
7.0.320.0060.00616.88
7.0.310.0030.00717.08
7.0.300.0100.00316.96
7.0.290.0030.01317.13
7.0.280.0070.00716.95
7.0.270.0050.01117.26
7.0.260.0090.00717.36
7.0.250.0100.00716.93
7.0.240.0070.01016.85
7.0.230.0070.01116.92
7.0.220.0070.01116.91
7.0.210.0060.01016.08
7.0.200.0310.00715.82
7.0.190.0200.00815.95
7.0.180.0200.00715.68
7.0.170.0180.01015.65
7.0.160.0170.01115.64
7.0.150.0190.01015.68
7.0.140.0160.00915.66
7.0.130.0150.00915.76
7.0.120.0110.01115.79
7.0.110.0170.00515.75
7.0.100.0190.00815.67
7.0.90.0160.00715.70
7.0.80.0200.00815.73
7.0.70.0200.00615.66
7.0.60.0160.01115.60
7.0.50.1040.01015.67
7.0.40.0080.00815.15
7.0.30.0060.01015.27
7.0.20.0080.00815.26
7.0.10.0070.01115.22
7.0.00.0100.00715.23
5.6.400.0000.01215.82
5.6.390.0000.01215.78
5.6.380.0070.00315.54
5.6.370.0030.00615.80
5.6.360.0040.01215.72
5.6.350.0030.01015.77
5.6.340.0110.00715.77
5.6.330.0090.00915.85
5.6.320.0040.00915.79
5.6.310.0060.00315.97
5.6.300.0100.01016.03
5.6.290.0030.01315.83
5.6.280.0030.01615.79
5.6.270.0030.01215.93
5.6.260.0090.00615.79
5.6.250.0000.01115.75
5.6.240.0060.00915.86
5.6.230.0060.00915.54
5.6.220.0030.00915.65
5.6.210.0100.00315.66
5.6.200.0060.01215.80
5.6.190.0000.01215.54
5.6.180.0060.01015.73
5.6.170.0030.01315.59
5.6.160.0030.00915.67
5.6.150.0060.00615.50
5.6.140.0100.00615.79
5.6.130.0030.01215.87
5.6.120.0030.00615.75
5.6.110.0000.01215.82
5.6.100.0060.00315.82
5.6.90.0080.00815.77
5.6.80.0040.00415.53
5.6.70.0030.00715.85
5.6.60.0130.00315.55
5.6.50.0030.01015.67
5.6.40.0070.00715.44
5.6.30.0090.00615.56
5.6.20.0090.00615.73
5.6.10.0110.00315.64
5.6.00.0080.00415.63

preferences:
57.59 ms | 400 KiB | 5 Q