3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f0() {} function f1() {} function f2() {} function f3() {} assert(get_defined_functions()['user'] === array('f0', 'f1', 'f2', 'f3')); assert(get_defined_functions('user') === array('f0', 'f1', 'f2', 'f3')); assert(get_defined_functions(0) === array('f0', 'f1', 'f2', 'f3')); assert(get_defined_functions(1) === array('f1', 'f2', 'f3')); assert(get_defined_functions(3) === array('f3')); assert(get_defined_functions(4) === array()); assert(get_defined_functions(5) === array());

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.70.0120.00316.50
8.3.60.0150.00018.43
8.3.50.0110.00921.21
8.3.40.0120.00418.80
8.3.30.0090.00918.63
8.3.20.0170.00318.56
8.3.10.0080.00021.54
8.3.00.0000.00820.96
8.2.190.0070.00716.75
8.2.180.0100.00716.50
8.2.170.0090.00622.96
8.2.160.0070.00718.96
8.2.150.0040.00424.18
8.2.140.0110.00424.66
8.2.130.0080.00320.94
8.2.120.0040.00426.35
8.2.110.0050.00522.26
8.2.100.0030.00917.91
8.2.90.0040.00417.84
8.2.80.0000.00918.85
8.2.70.0000.00817.63
8.2.60.0000.00817.75
8.2.50.0000.00817.93
8.2.40.0040.00418.05
8.2.30.0040.00420.59
8.2.20.0000.00817.88
8.2.10.0050.00218.20
8.2.00.0060.00318.24
8.1.280.0060.01225.92
8.1.270.0040.00423.99
8.1.260.0020.00526.35
8.1.250.0050.00228.09
8.1.240.0000.00923.84
8.1.230.0080.00322.69
8.1.220.0040.00417.79
8.1.210.0060.00318.77
8.1.200.0000.00917.36
8.1.190.0000.00817.23
8.1.180.0030.00518.10
8.1.170.0000.00817.62
8.1.160.0000.00718.92
8.1.150.0040.00418.90
8.1.140.0000.00719.40
8.1.130.0030.00317.65
8.1.120.0000.00817.32
8.1.110.0000.00717.28
8.1.100.0070.00317.41
8.1.90.0040.00417.48
8.1.80.0000.00717.39
8.1.70.0000.00717.32
8.1.60.0060.00317.53
8.1.50.0100.00017.51
8.1.40.0030.00617.52
8.1.30.0050.00317.63
8.1.20.0000.00717.54
8.1.10.0040.00417.54
8.1.00.0040.00417.53
8.0.300.0000.00722.09
8.0.290.0040.00416.88
8.0.280.0070.00018.37
8.0.270.0030.00317.32
8.0.260.0030.00317.21
8.0.250.0040.00416.93
8.0.240.0050.00316.93
8.0.230.0050.00217.07
8.0.220.0070.00017.03
8.0.210.0000.00716.86
8.0.200.0030.00316.95
8.0.190.0070.00016.90
8.0.180.0050.00216.91
8.0.170.0040.00416.95
8.0.160.0050.00316.88
8.0.150.0040.00416.86
8.0.140.0040.00316.82
8.0.130.0000.00613.38
8.0.120.0000.00816.96
8.0.110.0000.00816.79
8.0.100.0050.00317.08
8.0.90.0000.00717.03
8.0.80.0030.01516.95
8.0.70.0000.00717.00
8.0.60.0080.00017.03
8.0.50.0040.00416.86
8.0.30.0070.01117.18
8.0.20.0120.00717.40
8.0.10.0040.00417.03
8.0.00.0120.01216.78
7.4.330.0060.00015.08
7.4.320.0060.00016.47
7.4.300.0000.00616.59
7.4.290.0000.00716.52
7.4.280.0000.00716.41
7.4.270.0080.00016.63
7.4.260.0030.00316.61
7.4.250.0080.00016.57
7.4.240.0000.00816.52
7.4.230.0070.00016.70
7.4.220.0130.01016.61
7.4.210.0060.00916.54
7.4.200.0030.00516.27
7.4.160.0040.01216.44
7.4.150.0060.01317.40
7.4.140.0120.00917.86
7.4.130.0130.00816.73
7.4.120.0090.01116.59
7.4.110.0100.00716.79
7.4.100.0070.01116.77
7.4.90.0100.00716.46
7.4.80.0060.01319.39
7.4.70.0030.01316.38
7.4.60.0130.00316.45
7.4.50.0120.00016.30
7.4.40.0150.00616.76
7.4.30.0100.00716.45
7.4.00.0100.00715.09
7.3.330.0070.00013.32
7.3.320.0000.00513.37
7.3.310.0080.00016.40
7.3.300.0050.00316.52
7.3.290.0080.00816.46
7.3.280.0100.00816.53
7.3.270.0140.00317.40
7.3.260.0150.00816.45
7.3.250.0130.00616.49
7.3.240.0080.01216.46
7.3.230.0070.01416.50
7.3.210.0130.00316.43
7.3.200.0050.01116.46
7.3.190.0110.00816.50
7.3.180.0130.00316.69
7.3.170.0110.00616.46
7.3.160.0070.01016.55
7.2.330.0110.00716.76
7.2.320.0070.01716.46
7.2.310.0100.00716.42
7.2.300.0110.00616.76
7.2.290.0030.01416.68
7.2.60.0060.00916.83
7.2.00.0070.00719.52
7.1.200.0070.00715.71
7.1.100.0000.01418.32
7.1.70.0000.01217.33
7.1.60.0040.01420.41
7.1.50.0260.01334.69
7.1.00.0030.07722.28
7.0.200.0210.00914.75
7.0.60.0230.05721.73
7.0.50.0070.08317.96
7.0.40.0130.07020.16
7.0.30.0130.08020.36
7.0.20.0170.06320.30
7.0.10.0170.09020.13
7.0.00.0170.06320.39
5.6.280.0000.09721.04
5.6.210.0030.08320.64
5.6.200.0000.04718.27
5.6.190.0200.08720.54
5.6.180.0100.06720.62
5.6.170.0200.05720.61
5.6.160.0130.06020.56
5.6.150.0170.05720.44
5.6.140.0170.06320.54
5.6.130.0170.06020.21
5.6.120.0670.05020.27
5.6.110.0130.06020.57
5.6.100.0270.06320.30
5.6.90.0700.09020.29
5.6.80.0600.06719.76
5.6.70.0700.04719.68
5.6.60.0600.05319.79
5.6.50.0570.06319.74
5.6.40.0170.06019.57
5.6.30.0700.05019.66
5.6.20.0630.07019.77
5.6.10.0770.05319.77
5.6.00.0830.07719.66
5.5.350.0270.04320.36
5.5.340.0130.03017.94
5.5.330.0170.06020.43
5.5.320.0270.07720.39
5.5.310.0130.07320.38
5.5.300.0270.05720.21
5.5.290.0100.06020.20
5.5.280.0530.05720.11
5.5.270.0170.05320.38
5.5.260.0700.06720.12
5.5.250.0600.06720.00
5.5.240.0570.05719.63
5.5.230.0600.06019.59
5.5.220.0670.05019.45
5.5.210.0600.05719.55
5.5.200.0130.05719.56
5.5.190.0600.05719.56
5.5.180.0770.05319.52
5.5.160.0800.06319.42
5.5.150.0400.07019.75
5.5.140.0130.05319.47
5.5.130.0100.08319.51
5.5.120.0870.06719.59
5.5.110.0800.07319.50
5.5.100.0970.05719.47
5.5.90.0670.06019.46
5.5.80.0730.05319.41
5.5.70.0730.07719.36
5.5.60.0730.07019.42
5.5.50.0430.06319.48
5.5.40.0570.05719.53
5.5.30.0270.05719.41
5.5.20.0200.04719.38
5.5.10.0500.06019.47
5.5.00.0530.05719.45

preferences:
19.01 ms | 401 KiB | 5 Q