3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Learner { public function train(array $set, array $answers); } interface WeightedLearner extends Learner { public function train(array $set, array $answers, array $weights = null); }

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.0110.00416.50
8.3.50.0130.00622.10
8.3.40.0090.01218.54
8.3.30.0090.00618.33
8.3.20.0000.00820.09
8.3.10.0060.00323.61
8.3.00.0060.00319.25
8.2.180.0120.00318.29
8.2.170.0110.00422.96
8.2.160.0080.00822.26
8.2.150.0060.00324.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0030.00621.04
8.2.110.0040.00822.08
8.2.100.0090.00317.93
8.2.90.0060.00319.19
8.2.80.0040.00417.97
8.2.70.0040.00617.25
8.2.60.0000.00817.93
8.2.50.0050.00318.07
8.2.40.0080.00021.08
8.2.30.0000.00720.67
8.2.20.0080.00017.52
8.2.10.0030.00617.92
8.2.00.0040.00417.90
8.1.280.0200.00325.92
8.1.270.0040.00424.66
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0030.00722.53
8.1.230.0040.00817.54
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0100.00017.22
8.1.190.0060.00317.23
8.1.180.0080.00018.10
8.1.170.0000.00718.84
8.1.160.0070.00022.07
8.1.150.0070.00018.86
8.1.140.0000.00819.41
8.1.130.0000.00717.66
8.1.120.0040.00417.42
8.1.110.0000.00717.27
8.1.100.0030.00417.30
8.1.90.0070.00217.28
8.1.80.0040.00417.41
8.1.70.0070.00017.41
8.1.60.0100.00017.58
8.1.50.0030.00617.33
8.1.40.0080.00017.41
8.1.30.0050.00317.41
8.1.20.0030.00517.46
8.1.10.0080.00017.34
8.1.00.0000.00917.29
8.0.300.0040.00418.78
8.0.290.0000.00716.63
8.0.280.0030.00318.38
8.0.270.0040.00417.09
8.0.260.0070.00017.18
8.0.250.0050.00316.89
8.0.240.0040.00416.86
8.0.230.0000.00716.87
8.0.220.0040.00416.79
8.0.210.0000.00716.65
8.0.200.0030.00316.89
8.0.190.0040.00416.88
8.0.180.0000.00716.84
8.0.170.0050.00316.72
8.0.160.0000.00816.85
8.0.150.0040.00416.64
8.0.140.0000.00816.82
8.0.130.0000.00513.24
8.0.120.0040.00416.73
8.0.110.0040.00416.81
8.0.100.0000.00716.77
8.0.90.0040.00416.76
8.0.80.0040.01116.83
8.0.70.0060.00316.69
8.0.60.0090.00416.74
8.0.50.0000.00816.73
8.0.30.0100.01116.89
8.0.20.0100.00817.40
8.0.10.0050.00316.77
8.0.00.0050.01116.69
7.4.330.0070.00015.13
7.4.320.0030.00516.39
7.4.300.0000.00616.32
7.4.290.0070.00016.53
7.4.280.0070.00016.39
7.4.270.0030.00316.42
7.4.260.0050.00516.51
7.4.250.0040.00416.26
7.4.240.0020.00516.48
7.4.230.0000.00716.34
7.4.220.0150.01216.39
7.4.210.0080.00916.46
7.4.200.0000.00716.30
7.4.160.0110.00416.39
7.4.150.0040.01217.40
7.4.140.0130.00917.86
7.4.130.0130.01316.51
7.4.120.0130.00416.36
7.4.110.0070.01016.37
7.4.100.0060.01616.30
7.4.90.0140.00316.40
7.4.80.0150.00919.39
7.4.70.0070.01016.36
7.4.60.0080.00816.54
7.4.50.0060.00316.23
7.4.40.0090.00616.48
7.4.30.0070.01016.52
7.4.00.0090.00614.95
7.3.330.0030.00312.96
7.3.320.0050.00013.14
7.3.310.0030.00316.22
7.3.300.0040.00416.13
7.3.290.0000.00616.22
7.3.280.0100.00916.14
7.3.270.0130.00317.40
7.3.260.0140.00316.46
7.3.240.0110.00816.42
7.3.230.0100.00616.39
7.3.210.0030.01316.09
7.3.200.0060.01116.31
7.3.190.0080.01516.09
7.3.180.0140.00516.28
7.3.170.0180.00316.36
7.3.160.0070.01016.21
7.3.10.0140.00016.52
7.3.00.0100.00316.62
7.2.330.0030.01316.27
7.2.320.0120.01216.23
7.2.310.0120.00616.43
7.2.300.0150.00416.48
7.2.290.0100.00716.47
7.2.130.0060.00316.50
7.2.120.0040.01216.46
7.2.110.0090.00316.27
7.2.100.0060.00616.29
7.2.90.0100.00316.66
7.2.80.0000.01016.53
7.2.70.0090.00616.78
7.2.60.0060.01016.21
7.2.50.0070.00316.90
7.2.40.0060.00316.73
7.2.30.0000.01016.86
7.2.20.0030.00816.79
7.2.10.0100.00016.36
7.2.00.0040.01017.98
7.1.250.0060.00615.54
7.1.200.0040.00415.80
7.1.100.0040.00717.99
7.1.70.0030.00916.79
7.1.60.0080.01219.43
7.1.50.0070.01416.63
7.1.00.0030.07722.43
7.0.200.0120.00314.71
7.0.60.0130.06720.06
7.0.50.0100.07017.90
7.0.40.0070.04720.22
7.0.30.0230.07720.24
7.0.20.0130.05720.23
7.0.10.0100.08720.07
7.0.00.0030.04720.23
5.6.280.0070.06020.91
5.6.210.0070.08020.69
5.6.200.0130.05018.12
5.6.190.0070.06720.63
5.6.180.0430.06020.47
5.6.170.0230.08720.54
5.6.160.0000.07320.55
5.6.150.0130.07018.27
5.6.140.0070.04718.14
5.6.130.0070.08018.17
5.6.120.0100.08021.04
5.6.110.0030.07721.01
5.6.100.0070.08320.95
5.6.90.0100.08321.12
5.6.80.0100.08020.42
5.5.350.0230.05020.41
5.5.340.0000.04717.98
5.5.330.0000.06720.29
5.5.320.0270.07720.34
5.5.310.0230.06020.21
5.5.300.0100.07317.97
5.5.290.0100.05317.95
5.5.280.0030.08320.68
5.5.270.0170.07720.97
5.5.260.0070.07720.88
5.5.250.0070.08020.69
5.5.240.0000.08320.36
5.4.450.0300.06019.61
5.4.440.0330.05019.47
5.4.430.0200.06019.20
5.4.420.0630.07019.61
5.4.410.0700.05319.45
5.4.400.0600.08019.02
5.4.390.0200.07318.84
5.4.380.0370.06019.25
5.4.370.0200.05319.23
5.4.360.0430.06018.98
5.4.350.0230.07319.23
5.4.340.0330.06019.25
5.4.320.0130.05719.15
5.4.310.0330.06019.28
5.4.300.0170.07019.32
5.4.290.0530.06319.28
5.4.280.0370.06719.14
5.4.270.0670.06019.28
5.4.260.0400.06719.12
5.4.250.0270.05719.29
5.4.240.0170.07319.28
5.4.230.0470.06319.28
5.4.220.0270.07319.27
5.4.210.0630.06719.05
5.4.200.0400.05019.29
5.4.190.0430.06318.86
5.4.180.0200.05719.24
5.4.170.0170.05719.14
5.4.160.0130.06019.04
5.4.150.0530.05719.13
5.4.140.0670.05016.35
5.4.130.0100.05716.54
5.4.120.0300.05716.31
5.4.110.0170.06716.62
5.4.100.0300.06716.51
5.4.90.0370.06716.63
5.4.80.0330.05316.50
5.4.70.0330.05316.50
5.4.60.0100.06716.49
5.4.50.0630.06316.49
5.4.40.0270.05716.49
5.4.30.0700.05316.59
5.4.20.0530.05716.16
5.4.10.0330.05716.51
5.4.00.0330.06315.77

preferences:
64.12 ms | 401 KiB | 5 Q