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); }

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.0120.00916.75
8.3.50.0110.00821.99
8.3.40.0060.00918.50
8.3.30.0040.01118.65
8.3.20.0070.00020.20
8.3.10.0000.00823.48
8.3.00.0000.00819.38
8.2.180.0090.00918.18
8.2.170.0100.00722.96
8.2.160.0070.01322.08
8.2.150.0030.00625.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00617.50
8.2.110.0080.00322.02
8.2.100.0100.00317.80
8.2.90.0040.00419.22
8.2.80.0040.00417.97
8.2.70.0040.00417.38
8.2.60.0030.00617.93
8.2.50.0000.00918.07
8.2.40.0030.00619.38
8.2.30.0000.00820.62
8.2.20.0050.00217.66
8.2.10.0080.00017.95
8.2.00.0000.00718.03
8.1.280.0100.01025.92
8.1.270.0040.00423.91
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0090.00022.36
8.1.230.0080.00417.52
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.22
8.1.190.0050.00517.00
8.1.180.0050.00218.10
8.1.170.0040.00419.03
8.1.160.0000.00721.96
8.1.150.0050.00218.82
8.1.140.0000.00819.61
8.1.130.0000.00717.59
8.1.120.0020.00517.40
8.1.110.0000.00817.36
8.1.100.0030.00517.35
8.1.90.0040.00417.38
8.1.80.0070.00017.32
8.1.70.0030.00317.23
8.1.60.0000.00717.47
8.1.50.0000.00917.46
8.1.40.0000.00817.39
8.1.30.0080.00017.55
8.1.20.0080.00017.59
8.1.10.0040.00417.27
8.1.00.0050.00517.31
8.0.300.0040.00418.78
8.0.290.0000.00916.63
8.0.280.0000.00718.25
8.0.270.0000.00717.11
8.0.260.0000.00617.19
8.0.250.0040.00416.97
8.0.240.0040.00416.97
8.0.230.0080.00017.01
8.0.220.0000.00716.88
8.0.210.0040.00416.90
8.0.200.0070.00016.92
8.0.190.0000.00816.86
8.0.180.0000.00816.96
8.0.170.0030.00616.88
8.0.160.0030.00517.02
8.0.150.0100.00016.75
8.0.140.0000.00716.73
8.0.130.0030.00313.32
8.0.120.0000.00816.80
8.0.110.0000.00716.86
8.0.100.0030.00516.77
8.0.90.0040.00416.82
8.0.80.0080.00816.89
8.0.70.0070.00016.89
8.0.60.0000.00716.84
8.0.50.0050.00216.70
8.0.30.0030.01517.09
8.0.20.0120.00917.40
8.0.10.0080.00016.82
8.0.00.0100.00616.57
7.4.330.0060.00015.13
7.4.320.0060.00316.36
7.4.300.0030.00316.29
7.4.290.0080.00016.43
7.4.280.0030.00616.52
7.4.270.0030.00316.53
7.4.260.0070.00316.44
7.4.250.0040.00416.33
7.4.240.0020.00716.39
7.4.230.0070.00016.29
7.4.220.0120.00616.45
7.4.210.0110.00416.48
7.4.200.0050.00216.61
7.4.160.0040.01216.54
7.4.150.0120.00617.40
7.4.140.0120.00817.86
7.4.130.0220.00016.39
7.4.120.0110.01016.56
7.4.110.0170.00316.61
7.4.100.0100.01316.34
7.4.90.0090.00916.52
7.4.80.0070.01719.39
7.4.70.0060.01116.38
7.4.60.0100.00616.55
7.4.50.0050.00316.21
7.4.40.0120.00316.54
7.4.30.0160.00616.58
7.4.00.0090.00914.79
7.3.330.0030.00313.23
7.3.320.0060.00013.30
7.3.310.0070.00016.13
7.3.300.0030.00316.18
7.3.290.0030.00316.28
7.3.280.0070.00916.25
7.3.270.0150.00317.40
7.3.260.0030.01316.35
7.3.240.0090.01116.25
7.3.230.0100.00716.39
7.3.210.0060.01616.22
7.3.200.0110.00716.27
7.3.190.0030.01216.21
7.3.180.0000.01516.41
7.3.170.0140.00716.37
7.3.160.0030.01416.39
7.2.330.0060.01816.59
7.2.320.0060.01516.45
7.2.310.0060.00916.29
7.2.300.0060.01216.18
7.2.290.0100.00716.55
7.2.60.0060.01016.82
7.2.00.0000.01219.12
7.1.200.0000.00915.48
7.1.100.0060.01217.91
7.1.70.0000.01117.14
7.1.60.0080.00619.43
7.1.50.0120.01216.77
7.1.00.0070.07322.57
7.0.200.0200.00714.55
7.0.60.0100.06719.87
7.0.50.0070.07717.98
7.0.40.0030.05020.04
7.0.30.0270.06320.31
7.0.20.0170.05020.20
7.0.10.0130.04020.21
7.0.00.0100.04020.09
5.6.280.0000.03321.08
5.6.210.0100.08020.54
5.6.200.0130.07318.12
5.6.190.0030.08320.46
5.6.180.0530.07320.49
5.6.170.0300.05020.56
5.6.160.0170.07320.49
5.6.150.0100.07718.26
5.6.140.0100.08018.14
5.6.130.0000.05318.26
5.6.120.0270.03721.04
5.6.110.0070.08721.14
5.6.100.0070.07320.97
5.6.90.0030.08321.03
5.6.80.0130.07020.38
5.5.350.0300.07320.33
5.5.340.0030.03718.02
5.5.330.0070.08720.38
5.5.320.0230.06720.37
5.5.310.0270.05720.33
5.5.300.0100.03718.10
5.5.290.0070.06718.05
5.5.280.0030.09020.66
5.5.270.0070.08020.65
5.5.260.0000.04320.73
5.5.250.0070.05320.46
5.5.240.0030.07720.16
5.4.450.0730.07019.46
5.4.440.0100.06319.61
5.4.430.0170.07019.55
5.4.420.0530.06019.61
5.4.410.0200.05019.43
5.4.400.0170.06719.05
5.4.390.0170.07319.30
5.4.380.0300.06319.27
5.4.370.0300.04319.29
5.4.360.0300.07019.23
5.4.350.0300.05018.98
5.4.340.0270.05319.23
5.4.320.0170.05319.29
5.4.310.0470.05018.87
5.4.300.0900.05318.96
5.4.290.0700.05719.35
5.4.280.0270.07019.12
5.4.270.0300.05719.00
5.4.260.0370.05019.23
5.4.250.0300.07718.81
5.4.240.0130.06318.99
5.4.230.0170.05718.80
5.4.220.0770.06319.09
5.4.210.0670.06719.23
5.4.200.0730.05319.20
5.4.190.0730.05318.82
5.4.180.0970.05318.84
5.4.170.0230.07018.98
5.4.160.0270.06719.23
5.4.150.0270.06719.33
5.4.140.0130.06716.35
5.4.130.0130.06716.50
5.4.120.0200.06716.43
5.4.110.0100.07716.52
5.4.100.0130.05716.56
5.4.90.0330.04716.42
5.4.80.0730.05716.39
5.4.70.0570.06016.57
5.4.60.0970.03716.59
5.4.50.0730.05016.25
5.4.40.0770.05016.24
5.4.30.0470.05716.59
5.4.20.0270.04716.61
5.4.10.0730.06016.40
5.4.00.0630.05715.76

preferences:
51.76 ms | 401 KiB | 5 Q