3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function test(string $foo) { } } class B { public function test($foo) { } }

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.0150.00618.31
8.3.50.0110.01118.01
8.3.40.0090.00618.60
8.3.30.0070.00718.51
8.3.20.0070.00720.04
8.3.10.0040.00423.36
8.3.00.0000.00819.52
8.2.180.0070.00725.92
8.2.170.0070.01418.70
8.2.160.0040.01122.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0070.00019.39
8.2.120.0070.00026.35
8.2.110.0070.00322.21
8.2.100.0110.00417.53
8.2.90.0030.00519.09
8.2.80.0040.00417.97
8.2.70.0040.00417.38
8.2.60.0060.00317.68
8.2.50.0040.00418.10
8.2.40.0000.00720.41
8.2.30.0000.00819.12
8.2.20.0040.00417.86
8.2.10.0000.00717.93
8.2.00.0000.00718.15
8.1.280.0060.01225.92
8.1.270.0000.00820.43
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0090.00024.02
8.1.230.0090.00323.86
8.1.220.0000.00717.74
8.1.210.0080.00018.77
8.1.200.0030.00517.23
8.1.190.0060.00317.11
8.1.180.0000.00718.10
8.1.170.0050.00318.28
8.1.160.0000.00818.81
8.1.150.0030.00320.11
8.1.140.0040.00417.55
8.1.130.0060.00018.93
8.1.120.0030.00717.27
8.1.110.0050.00317.22
8.1.100.0000.00817.31
8.1.90.0030.00317.39
8.1.80.0000.00717.16
8.1.70.0070.00317.28
8.1.60.0040.00417.39
8.1.50.0000.00717.32
8.1.40.0050.00217.30
8.1.30.0030.00617.43
8.1.20.0080.00317.47
8.1.10.0040.00417.39
8.1.00.0000.00917.33
8.0.300.0030.00618.77
8.0.290.0070.00016.63
8.0.280.0000.00718.18
8.0.270.0030.00317.13
8.0.260.0000.00716.62
8.0.250.0040.00416.86
8.0.240.0020.00516.68
8.0.230.0060.00316.81
8.0.220.0030.00316.66
8.0.210.0000.00716.79
8.0.200.0000.00716.73
8.0.190.0000.00816.83
8.0.180.0040.00416.76
8.0.170.0040.00416.66
8.0.160.0030.00616.63
8.0.150.0070.00016.70
8.0.140.0030.00516.78
8.0.130.0070.00013.18
8.0.120.0050.00316.71
8.0.110.0040.00416.86
8.0.100.0040.00416.66
8.0.90.0030.00316.87
8.0.80.0000.01716.77
8.0.70.0000.00816.64
8.0.60.0040.00416.56
8.0.50.0030.00516.75
8.0.30.0070.01116.82
8.0.20.0100.01017.40
8.0.10.0070.00016.76
8.0.00.0120.00716.58
7.4.330.0030.00315.55
7.4.320.0030.00316.47
7.4.300.0030.00316.36
7.4.290.0050.00316.39
7.4.280.0080.00016.50
7.4.270.0030.00316.36
7.4.260.0080.00016.45
7.4.250.0040.00416.35
7.4.240.0060.00316.51
7.4.230.0000.00716.36
7.4.220.0040.00416.20
7.4.210.0090.00616.33
7.4.200.0030.00316.57
7.4.160.0080.00916.40
7.4.150.0110.00617.40
7.4.140.0090.00817.86
7.4.130.0120.00616.42
7.4.120.0100.00716.24
7.4.110.0140.00416.28
7.4.100.0120.00416.23
7.4.90.0030.01316.46
7.4.80.0060.01019.39
7.4.70.0060.01216.36
7.4.60.0040.01116.28
7.4.50.0030.00916.03
7.4.40.0090.00616.20
7.4.00.0070.01014.71
7.3.330.0000.00613.18
7.3.320.0060.00013.18
7.3.310.0000.00615.98
7.3.300.0070.00016.04
7.3.290.0000.00616.06
7.3.280.0110.00716.15
7.3.270.0120.00617.40
7.3.260.0120.00816.32
7.3.250.0120.00716.29
7.3.240.0060.01016.36
7.3.230.0070.01016.41
7.3.210.0090.00616.20
7.3.200.0130.00316.13
7.3.190.0090.00616.35
7.3.180.0030.01716.13
7.3.170.0080.00816.41
7.3.160.0070.01016.16
7.2.330.0090.00916.54
7.2.320.0150.00616.31
7.2.310.0100.01016.43
7.2.300.0060.01016.57
7.2.290.0120.00416.56
7.2.80.0090.00616.54
7.2.60.0030.01216.40
7.2.20.0290.00517.73
7.2.10.0750.00417.72
7.2.00.0200.01417.67
7.1.200.0050.00515.29
7.1.140.0320.00416.63
7.1.130.0160.01316.65
7.1.120.0160.01416.50
7.1.110.0190.01015.91
7.1.100.0220.00915.95
7.1.90.0300.00416.11
7.1.80.0320.01315.75
7.1.70.0260.01014.98
7.1.60.0250.02233.19
7.1.50.0440.00932.73
7.1.40.0510.01032.35
7.1.30.0400.01832.55
7.1.20.0330.01332.41
7.1.10.0180.01114.35
7.1.00.0780.00314.71

preferences:
57.97 ms | 401 KiB | 5 Q