3v4l.org

run code in 300+ PHP versions simultaneously
<?php $profiles = [ 'entity_weight_boost' => [ 'score_mode' => 'sum', 'functions' => [ [ // Incoming links: k = 100, since it is normal to have a bunch of incoming links 'type' => 'satu', 'weight' => '0.6', 'params' => [ 'field' => 'incoming_links', 'missing' => 0, 'a' => 1 , 'k' => 100 ] ], [ // Site links: k = 20, tens of sites is a lot 'type' => 'satu', 'weight' => '0.4', 'params' => [ 'field' => 'sitelink_count', 'missing' => 0, 'a' => 2, 'k' => 20 ] ], [ // (De)boosting by statement values 'type' => 'term_boost', 'weight' => 0.1, 'params' => [ 'statement_keywords' => [ // Q4167410=Wikimedia disambiguation page 'P31=Q4167410' => -10, // T183510: // Q13442814=scientific article 'P31=Q13442814' => -5, // Q18918145=academic journal article 'P31=Q18918145' => -5, ] ] ] ], ], ]; $overrides = [ 'entity_weight_boost.functions.2.params.statement_keywords' => 'SomeOverride' ]; function setDotted(array $path, &$arg, $val) { $key = array_shift($path); if (!isset($arg[$key])) { return; } if (count($path) === 0) { $arg[$key] = $val; } else { setDotted($path, $arg[$key], $val); } } foreach ( $overrides as $path => $configVar ) { setDotted(explode(".", $path), $profiles, ['a' => 1]); } var_dump($profiles);

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.00716.50
8.3.50.0120.00618.05
8.3.40.0090.00618.75
8.3.30.0090.00618.84
8.3.20.0000.00821.89
8.3.10.0050.00323.56
8.3.00.0040.00421.77
8.2.180.0120.00918.29
8.2.170.0160.00322.96
8.2.160.0120.00320.61
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0030.00626.16
8.2.120.0030.00619.76
8.2.110.0070.00321.07
8.2.100.0060.00618.22
8.2.90.0000.00819.30
8.2.80.0000.00817.97
8.2.70.0050.00318.04
8.2.60.0040.00418.05
8.2.50.0000.00718.10
8.2.40.0000.00820.51
8.2.30.0000.00719.53
8.2.20.0000.00718.14
8.2.10.0000.00718.20
8.2.00.0040.00418.20
8.1.280.0100.00725.92
8.1.270.0140.00320.64
8.1.260.0090.00026.35
8.1.250.0110.00728.09
8.1.240.0060.00322.80
8.1.230.0060.00620.26
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0060.00317.36
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0090.00019.03
8.1.160.0070.00018.96
8.1.150.0040.00419.09
8.1.140.0000.00717.68
8.1.130.0070.00018.96
8.1.120.0070.00017.42
8.1.110.0000.00817.47
8.1.100.0120.00017.50
8.1.90.0070.00317.38
8.1.80.0040.00417.38
8.1.70.0080.00017.53
8.1.60.0030.00617.61
8.1.50.0090.00017.53
8.1.40.0000.00917.58
8.1.30.0000.00817.68
8.1.20.0000.00817.70
8.1.10.0030.00617.63
8.1.00.0040.00417.45
8.0.300.0060.00319.21
8.0.290.0030.00516.75
8.0.280.0030.00318.54
8.0.270.0000.00817.30
8.0.260.0070.00019.10
8.0.250.0030.00316.96
8.0.240.0040.00416.99
8.0.230.0100.00016.98
8.0.220.0030.00316.87
8.0.210.0050.00216.91
8.0.200.0080.00017.00
8.0.190.0000.00817.07
8.0.180.0000.00717.04
8.0.170.0000.00817.04
8.0.160.0000.00717.00
8.0.150.0050.00216.90
8.0.140.0040.00417.00
8.0.130.0000.00613.34
8.0.120.0000.00716.91
8.0.110.0070.00017.00
8.0.100.0040.00417.00
8.0.90.0040.00417.03
8.0.80.0030.01716.97
8.0.70.0040.00417.04
8.0.60.0000.00816.94
8.0.50.0040.00416.88
8.0.30.0140.01217.18
8.0.20.0110.01017.40
8.0.10.0040.00416.93
8.0.00.0070.01017.03
7.4.330.0050.00015.55
7.4.320.0030.00616.56
7.4.300.0040.00416.64
7.4.290.0000.00716.52
7.4.280.0040.00416.48
7.4.270.0070.00016.54
7.4.260.0070.00016.54
7.4.250.0040.00416.58
7.4.240.0040.00416.59
7.4.230.0000.00716.37
7.4.220.0070.00016.44
7.4.210.0050.01516.55
7.4.200.0030.00316.58
7.4.160.0090.01016.52
7.4.140.0120.00917.86
7.4.130.0070.01116.60
7.4.120.0090.01116.58
7.4.110.0150.00716.71
7.4.100.0070.01016.44
7.4.90.0090.00916.47
7.4.80.0130.00619.39
7.4.70.0070.01116.54
7.4.60.0090.00916.57
7.4.50.0000.01516.43
7.4.40.0030.01716.61
7.4.00.0090.00915.13
7.3.330.0030.00313.11
7.3.320.0000.00613.15
7.3.310.0060.00316.38
7.3.300.0000.00716.38
7.3.290.0070.00016.42
7.3.280.0090.00816.38
7.3.260.0110.00816.36
7.3.240.0130.00416.45
7.3.230.0090.00916.67
7.3.210.0120.00816.48
7.3.200.0090.00916.56
7.3.190.0130.01016.48
7.3.180.0130.00316.49
7.3.170.0030.01416.63
7.3.160.0080.00816.39
7.3.10.0040.01116.73
7.3.00.0050.00916.74
7.2.330.0100.01016.70
7.2.320.0100.00616.77
7.2.310.0070.01016.86
7.2.300.0100.00716.73
7.2.290.0080.01216.79
7.2.130.0070.00716.86
7.2.120.0050.00616.84
7.2.110.0060.00616.89
7.2.100.0050.00916.86
7.2.90.0070.00116.96
7.2.80.0070.00716.89
7.2.70.0020.00916.68
7.2.60.0070.00916.83
7.2.50.0110.00616.77
7.2.40.0200.00917.35
7.2.30.0150.00817.30
7.2.20.0180.00617.31
7.2.10.0150.01117.36
7.2.00.0200.00517.32
7.1.250.0050.00615.61
7.1.240.0060.00915.40
7.1.230.0070.01015.87
7.1.220.0090.00615.84
7.1.210.0040.00815.61
7.1.200.0030.00815.77
7.1.190.0030.00715.51
7.1.180.0120.00315.59
7.1.170.0070.00715.62
7.1.160.0230.00816.21
7.1.150.0180.01016.41
7.1.140.0250.00616.34
7.1.130.0210.00816.43
7.1.120.0220.00716.32
7.1.110.0230.00816.00
7.1.100.0240.00716.14
7.1.90.0210.00715.86
7.1.80.0330.01216.02
7.1.70.0330.00515.42
7.1.60.0330.01024.53
7.1.50.0340.00724.29
7.1.40.0270.01324.22
7.1.30.0310.01024.06
7.1.20.0390.01024.31
7.1.10.0230.01015.18
7.1.00.0240.00915.26
7.0.330.0100.00715.28
5.6.380.0030.00714.46

preferences:
56.57 ms | 400 KiB | 5 Q