3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { protected $url; public function __construct(string $url = null) { $this->url = $url; } public function url() : string { return $this->url; } } $test = new Test(null); echo $test->url();

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.00916.73
8.3.50.0100.01316.47
8.3.40.0110.00718.61
8.3.30.0160.00618.79
8.3.20.0080.00020.34
8.3.10.0040.00423.44
8.3.00.0000.00823.66
8.2.180.0110.00716.88
8.2.170.0070.00722.96
8.2.160.0140.00020.52
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0050.00319.70
8.2.120.0040.00426.35
8.2.110.0000.00922.25
8.2.100.0040.00817.72
8.2.90.0030.00518.22
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0030.00617.80
8.2.50.0050.00518.07
8.2.40.0040.00422.14
8.2.30.0040.00419.28
8.2.20.0050.00317.76
8.2.10.0040.00418.02
8.2.00.0040.00417.91
8.1.280.0040.01125.92
8.1.270.0000.00823.82
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0030.00622.19
8.1.230.0030.00720.90
8.1.220.0060.00317.74
8.1.210.0030.00618.77
8.1.200.0070.00317.25
8.1.190.0040.00417.09
8.1.180.0060.00318.10
8.1.170.0000.00818.35
8.1.160.0000.00720.61
8.1.150.0060.00318.84
8.1.140.0030.00519.47
8.1.130.0030.00317.52
8.1.120.0040.00417.35
8.1.110.0070.00017.43
8.1.100.0040.00417.30
8.1.90.0000.00817.41
8.1.80.0000.00817.43
8.1.70.0000.00717.28
8.1.60.0000.00817.63
8.1.50.0050.00317.49
8.1.40.0080.00017.55
8.1.30.0080.00017.64
8.1.20.0060.00317.53
8.1.10.0050.00317.49
8.1.00.0000.00717.47
8.0.300.0030.00320.07
8.0.290.0040.00416.63
8.0.280.0000.00718.31
8.0.270.0030.00317.14
8.0.260.0000.00717.10
8.0.250.0070.00016.89
8.0.240.0030.00316.83
8.0.230.0070.00016.82
8.0.220.0000.00716.91
8.0.210.0000.00716.79
8.0.200.0040.00416.95
8.0.190.0050.00316.92
8.0.180.0000.00716.94
8.0.170.0030.00516.94
8.0.160.0040.00416.73
8.0.150.0050.00216.79
8.0.140.0030.00316.85
8.0.130.0000.00513.32
8.0.120.0040.00416.84
8.0.110.0000.00816.80
8.0.100.0030.00516.92
8.0.90.0040.00416.79
8.0.80.0100.00716.80
8.0.70.0000.00716.75
8.0.60.0000.00716.72
8.0.50.0040.00416.96
8.0.30.0080.01017.12
8.0.20.0070.01217.40
8.0.10.0070.00016.99
8.0.00.0110.01116.79
7.4.330.0020.00216.73
7.4.320.0040.00416.49
7.4.300.0040.00416.54
7.4.290.0030.00316.43
7.4.280.0030.00616.50
7.4.270.0000.00716.46
7.4.260.0060.00316.49
7.4.250.0040.00416.41
7.4.240.0050.00216.57
7.4.230.0030.00316.30
7.4.220.0030.01316.60
7.4.210.0040.01116.67
7.4.200.0000.00716.40
7.4.160.0060.00916.63
7.4.150.0110.01117.40
7.4.140.0150.00717.86
7.4.130.0130.00716.56
7.4.120.0100.01016.52
7.4.110.0090.00916.61
7.4.100.0070.01716.41
7.4.90.0000.02016.49
7.4.80.0040.01419.39
7.4.70.0110.00816.50
7.4.60.0120.00416.48
7.4.50.0060.00916.36
7.4.40.0070.01116.64
7.4.30.0140.01016.36
7.4.00.0060.00915.05
7.3.330.0000.00613.23
7.3.320.0030.00313.33
7.3.310.0040.00416.40
7.3.300.0000.00716.38
7.3.290.0000.00716.23
7.3.280.0070.00916.35
7.3.270.0110.00617.40
7.3.260.0070.01016.68
7.3.250.0120.00916.40
7.3.240.0120.00716.49
7.3.230.0130.00416.50
7.3.210.0150.00416.49
7.3.200.0030.01419.39
7.3.190.0090.00616.33
7.3.180.0030.01316.40
7.3.170.0170.00716.32
7.3.160.0120.00616.42
7.3.10.0070.01016.23
7.3.00.0060.01516.44
7.2.330.0100.00616.48
7.2.320.0070.01616.76
7.2.310.0040.01216.79
7.2.300.0040.01416.48
7.2.290.0160.00016.43
7.2.130.0100.00816.41
7.2.120.0200.00016.56
7.2.110.0090.00916.46
7.2.100.0170.00316.48
7.2.90.0100.00716.73
7.2.80.0140.00416.55
7.2.70.0140.00416.65
7.2.60.0110.00516.53
7.2.50.0160.00716.48
7.2.40.0150.01216.66
7.2.30.0120.00616.45
7.2.20.0130.01316.51
7.2.10.0150.01216.56
7.2.00.0150.00918.06
7.1.250.0120.00615.11
7.1.200.0040.00415.56
7.1.100.0090.00318.29
7.1.70.0030.00516.96
7.1.60.0100.01319.30
7.1.50.0000.01716.93
7.1.00.0070.07322.31
7.0.200.0060.00316.72
7.0.60.0130.08321.76
7.0.50.0030.08317.75
7.0.40.0100.04720.02
7.0.30.0230.05320.10
7.0.20.0430.06320.10
7.0.10.0030.05020.23
7.0.00.0000.04720.12
5.6.210.0070.05020.57
5.6.200.0030.07318.16
5.6.190.0100.03320.48
5.6.180.0400.07020.63
5.6.170.0370.07020.71
5.6.160.0070.05020.55
5.6.150.0000.04318.20
5.6.140.0100.04318.27
5.6.130.0000.07718.28
5.6.120.0100.08321.14
5.6.110.0030.04020.99
5.6.100.0070.04321.02
5.6.90.0030.04020.99
5.6.80.0070.07720.44
5.5.350.0330.07320.48
5.5.340.0130.04018.04
5.5.330.0030.04320.47
5.5.320.0230.05020.27
5.5.310.0400.07020.27
5.5.300.0000.09018.04
5.5.290.0030.08317.93
5.5.280.0000.07720.83
5.5.270.0070.06320.67
5.5.260.0070.04720.73
5.5.250.0070.07020.50
5.5.240.0130.08320.04

preferences:
51.77 ms | 401 KiB | 5 Q