3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function aa(int $a) { echo $a; } } class B extends A { public function aa(float $a, float $b) { echo $a; } } $a = new A(); $a->aa(1);

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.0100.01016.38
8.3.50.0090.01122.05
8.3.40.0040.01118.63
8.3.30.0190.00018.47
8.3.20.0030.00520.21
8.3.10.0000.00823.66
8.3.00.0080.00019.01
8.2.180.0080.00818.54
8.2.170.0140.00722.96
8.2.160.0150.00620.35
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0090.00026.16
8.2.120.0060.00317.50
8.2.110.0070.00320.92
8.2.100.0080.00417.72
8.2.90.0050.00318.97
8.2.80.0030.00617.97
8.2.70.0000.00817.38
8.2.60.0030.00717.80
8.2.50.0030.00618.10
8.2.40.0040.00420.59
8.2.30.0030.00320.66
8.2.20.0040.00417.46
8.2.10.0000.00817.91
8.2.00.0040.00417.84
8.1.280.0120.00625.92
8.1.270.0040.00423.84
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0000.00823.97
8.1.230.0070.00417.42
8.1.220.0030.00617.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0030.00519.19
8.1.180.0030.00518.10
8.1.170.0030.00518.36
8.1.160.0040.00422.13
8.1.150.0000.00718.65
8.1.140.0050.00319.44
8.1.130.0090.00017.55
8.1.120.0040.00417.22
8.1.110.0020.00517.38
8.1.100.0040.00417.39
8.1.90.0000.00717.34
8.1.80.0050.00317.38
8.1.70.0040.00417.27
8.1.60.0030.00617.40
8.1.50.0000.00817.42
8.1.40.0080.00017.25
8.1.30.0040.00417.35
8.1.20.0030.00617.52
8.1.10.0060.00317.37
8.1.00.0040.00417.20
8.0.300.0030.00318.77
8.0.290.0070.00016.63
8.0.280.0000.00718.23
8.0.270.0040.00417.13
8.0.260.0040.00417.13
8.0.250.0040.00416.77
8.0.240.0000.00716.82
8.0.230.0040.00416.91
8.0.220.0000.00816.88
8.0.210.0060.00316.82
8.0.200.0030.00316.77
8.0.190.0000.00816.89
8.0.180.0020.00516.74
8.0.170.0050.00316.80
8.0.160.0110.00016.87
8.0.150.0000.00716.80
8.0.140.0070.00016.79
8.0.130.0030.00613.25
8.0.120.0050.00316.67
8.0.110.0050.00216.66
8.0.100.0040.00416.84
8.0.90.0040.00416.70
8.0.80.0040.01116.84
8.0.70.0000.00816.70
8.0.60.0000.00716.76
8.0.50.0000.00716.76
8.0.30.0080.01116.96
8.0.20.0140.00517.40
8.0.10.0070.00017.01
8.0.00.0080.00916.67
7.4.330.0050.00015.08
7.4.320.0030.00316.43
7.4.300.0030.00316.62
7.4.290.0000.00716.63
7.4.280.0080.00016.42
7.4.270.0000.00716.58
7.4.260.0040.00416.53
7.4.250.0040.00416.37
7.4.240.0030.00316.47
7.4.230.0000.00716.44
7.4.220.0070.01016.48
7.4.210.0060.01416.63
7.4.200.0030.00316.52
7.4.160.0040.01216.40
7.4.150.0090.01017.40
7.4.140.0160.00817.86
7.4.130.0120.00616.45
7.4.120.0120.00516.56
7.4.110.0040.01416.59
7.4.100.0160.00616.57
7.4.90.0070.01016.50
7.4.80.0070.01019.39
7.4.70.0110.00716.61
7.4.60.0070.01416.47
7.4.50.0030.00516.46
7.4.40.0110.01116.52
7.4.30.0080.01516.59
7.4.00.0030.01515.14
7.3.330.0030.00313.08
7.3.320.0050.00013.25
7.3.310.0030.00316.19
7.3.300.0000.00716.26
7.3.290.0080.00816.28
7.3.280.0050.01416.26
7.3.270.0110.01417.40
7.3.260.0100.01316.56
7.3.250.0070.01416.30
7.3.240.0110.00616.61
7.3.230.0060.01216.39
7.3.210.0060.01016.32
7.3.200.0160.00616.29
7.3.190.0090.00616.35
7.3.180.0000.01616.56
7.3.170.0090.01216.32
7.3.160.0040.01116.30
7.3.120.0030.01414.93
7.3.110.0070.01014.91
7.3.100.0110.00414.76
7.3.90.0060.00614.47
7.3.80.0000.01214.75
7.3.70.0030.01014.84
7.3.60.0110.00314.96
7.3.50.0000.01614.89
7.3.40.0090.00914.84
7.3.30.0070.00714.84
7.3.20.0030.00916.78
7.3.10.0030.01016.60
7.3.00.0090.00016.27
7.2.330.0130.00316.77
7.2.320.0040.01416.40
7.2.310.0090.00916.37
7.2.300.0060.00916.74
7.2.290.0160.00616.37
7.2.250.0000.01914.93
7.2.240.0100.01014.57
7.2.230.0070.00714.76
7.2.220.0000.00914.73
7.2.210.0030.01014.95
7.2.200.0000.00914.78
7.2.190.0040.01114.92
7.2.180.0100.00714.98
7.2.170.0110.00715.05
7.2.60.0070.00716.87
7.2.00.0000.01319.34
7.1.330.0070.00715.61
7.1.320.0000.01315.87
7.1.310.0040.00415.88
7.1.300.0100.00715.53
7.1.290.0060.00915.70
7.1.280.0040.00815.70
7.1.270.0100.00315.67
7.1.260.0090.00615.60
7.1.200.0080.00415.59
7.1.100.0110.00717.70
7.1.70.0000.01217.12
7.1.60.0030.02019.43
7.1.50.0040.01216.64
7.1.00.0000.08022.40
7.0.200.0300.00014.65
7.0.60.0070.06319.79
7.0.50.0030.04317.88
7.0.40.0030.04320.30
7.0.30.0030.07720.22
7.0.20.0400.07020.17
7.0.10.0030.04320.07
7.0.00.0100.07320.25
5.6.280.0000.07321.13
5.6.210.0000.04320.55
5.6.200.0070.03718.25
5.6.190.0070.09320.41
5.6.180.0400.05720.55
5.6.170.0370.08320.55
5.6.160.0070.07720.57
5.6.150.0030.07718.16
5.6.140.0130.05018.23
5.6.130.0070.08018.18
5.6.120.0030.09320.97
5.6.110.0070.08720.98
5.6.100.0070.06721.02
5.6.90.0030.06020.96
5.6.80.0170.07320.48
5.5.350.0200.03320.53
5.5.340.0000.04017.97
5.5.330.0100.07320.42
5.5.320.0270.03320.52
5.5.310.0300.06020.50
5.5.300.0030.04317.94
5.5.290.0000.09017.98
5.5.280.0100.07720.88
5.5.270.0000.08720.65
5.5.260.0130.08020.86
5.5.250.0030.06320.78
5.5.240.0070.07320.28
5.4.450.0570.06319.69
5.4.440.0830.06719.44
5.4.430.0700.06019.14
5.4.420.0730.05319.57
5.4.410.0670.05019.20
5.4.400.0730.05719.28
5.4.390.0530.05719.05
5.4.380.0770.05019.00
5.4.370.0730.04319.08
5.4.360.0630.05319.15
5.4.350.0700.05719.23
5.4.340.0630.06018.83
5.4.320.0700.05019.28
5.4.310.0630.07019.00
5.4.300.0630.05319.05
5.4.290.0530.06318.83
5.4.280.0570.05719.27
5.4.270.0600.04719.24
5.4.260.0700.06019.31
5.4.250.0530.07019.11
5.4.240.0600.04719.29
5.4.230.0600.05018.82
5.4.220.0530.05319.36
5.4.210.0600.05318.99
5.4.200.0600.04718.82
5.4.190.0730.06718.78
5.4.180.0730.04018.84
5.4.170.0670.05019.29
5.4.160.0630.05019.37
5.4.150.0600.05719.11
5.4.140.0500.05716.49
5.4.130.0700.04316.56
5.4.120.0570.04716.38
5.4.110.0500.06016.67
5.4.100.0570.06016.70
5.4.90.0530.05716.62
5.4.80.0530.05016.65
5.4.70.0570.05316.55
5.4.60.0600.05316.42
5.4.50.0530.05016.39
5.4.40.0600.05716.55
5.4.30.0630.05316.42
5.4.20.0630.05316.54
5.4.10.0570.05716.41
5.4.00.0570.05015.86

preferences:
63.11 ms | 401 KiB | 5 Q