3v4l.org

run code in 300+ PHP versions simultaneously
<?php array_reduce([1, 2, 3, 4], function ($carry, $value) { if ($value === 4) return true; var_dump($carry); });

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.0060.01116.48
8.3.50.0170.00018.06
8.3.40.0100.01018.55
8.3.30.0110.00718.79
8.3.20.0040.00420.15
8.3.10.0090.00018.61
8.3.00.0040.01123.48
8.2.180.0070.01416.38
8.2.170.0120.00322.96
8.2.160.0070.00720.52
8.2.150.0130.00624.18
8.2.140.0000.00824.66
8.2.130.0040.00419.24
8.2.120.0030.00526.35
8.2.110.0030.00621.05
8.2.100.0070.00417.72
8.2.90.0040.00419.08
8.2.80.0040.00417.97
8.2.70.0080.00017.38
8.2.60.0030.00617.93
8.2.50.0000.00718.10
8.2.40.0040.00420.45
8.2.30.0040.00419.29
8.2.20.0000.00718.04
8.2.10.0000.00717.93
8.2.00.0070.00018.04
8.1.280.0170.00325.92
8.1.270.0030.00622.03
8.1.260.0110.00426.35
8.1.250.0030.00528.09
8.1.240.0140.00322.18
8.1.230.0070.00717.70
8.1.220.0080.00017.74
8.1.210.0030.00518.77
8.1.200.0060.00317.23
8.1.190.0050.00317.35
8.1.180.0080.00018.10
8.1.170.0040.00418.53
8.1.160.0040.00418.87
8.1.150.0050.00220.18
8.1.140.0030.00318.93
8.1.130.0040.00418.88
8.1.120.0070.00017.25
8.1.110.0040.00417.39
8.1.100.0030.00517.35
8.1.90.0040.00417.30
8.1.80.0000.01017.41
8.1.70.0000.00717.44
8.1.60.0050.00317.51
8.1.50.0030.00617.41
8.1.40.0030.00717.34
8.1.30.0040.00417.48
8.1.20.0000.00817.50
8.1.10.0090.00017.43
8.1.00.0000.00817.38
8.0.300.0070.00018.77
8.0.290.0040.00416.58
8.0.280.0070.00018.30
8.0.270.0070.00017.14
8.0.260.0000.00720.55
8.0.250.0060.00016.80
8.0.240.0030.00616.83
8.0.230.0040.00416.71
8.0.220.0070.00016.74
8.0.210.0040.00416.74
8.0.200.0070.00016.88
8.0.190.0000.00816.97
8.0.180.0000.00716.74
8.0.170.0040.00416.75
8.0.160.0040.00416.95
8.0.150.0000.00816.64
8.0.140.0000.00816.82
8.0.130.0060.00013.26
8.0.120.0040.00416.82
8.0.110.0040.00416.77
8.0.100.0030.00316.63
8.0.90.0000.00716.72
8.0.80.0090.00616.87
8.0.70.0020.00516.83
8.0.60.0000.00716.87
8.0.50.0040.00416.63
8.0.30.0070.01217.10
8.0.20.0120.00917.40
8.0.10.0040.00416.95
8.0.00.0090.01416.47
7.4.330.0000.00515.55
7.4.320.0030.00316.44
7.4.300.0030.00316.44
7.4.290.0040.00416.36
7.4.280.0050.00316.45
7.4.270.0070.00016.39
7.4.260.0080.00016.27
7.4.250.0040.00416.36
7.4.240.0070.00016.46
7.4.230.0030.00316.53
7.4.220.0100.01316.40
7.4.210.0050.01216.54
7.4.200.0030.00316.57
7.4.160.0080.01116.47
7.4.150.0100.01017.40
7.4.140.0090.01117.86
7.4.130.0140.00316.59
7.4.120.0080.01216.46
7.4.110.0060.01116.38
7.4.100.0070.01116.39
7.4.90.0090.00616.60
7.4.80.0100.00519.39
7.4.70.0100.01316.42
7.4.60.0070.00716.30
7.4.50.0110.00716.27
7.4.40.0130.00716.03
7.4.30.0120.00416.55
7.4.00.0070.00414.98
7.3.330.0000.00513.33
7.3.320.0000.00513.30
7.3.310.0030.00516.29
7.3.300.0070.00016.29
7.3.290.0030.00316.31
7.3.280.0090.00516.28
7.3.270.0160.01017.40
7.3.260.0080.01016.43
7.3.250.0080.01116.41
7.3.240.0100.00816.46
7.3.230.0090.00616.47
7.3.210.0130.00416.50
7.3.200.0070.01016.48
7.3.190.0030.01816.42
7.3.180.0080.00816.32
7.3.170.0060.00916.54
7.3.160.0090.00616.32
7.2.330.0030.01416.43
7.2.320.0070.01116.67
7.2.310.0130.00916.54
7.2.300.0140.01016.71
7.2.290.0030.01416.39
7.2.60.0070.00716.95
7.2.00.0030.01019.40
7.1.200.0000.01215.49
7.1.120.0060.00618.65
7.1.110.0030.00918.02
7.1.100.0080.00418.02
7.1.90.0050.00918.30
7.1.80.0070.00718.28
7.1.70.0070.00717.06
7.1.60.0130.01635.08
7.1.50.0080.02234.82
7.1.40.0210.00934.36
7.1.30.0270.00534.44
7.1.20.0110.01834.59
7.1.10.0090.00616.44
7.1.00.0040.01116.59

preferences:
54.73 ms | 400 KiB | 5 Q