3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test_1($arg_1, $arg_2){ return $arg_1+$arg_2; } $result = test_1(1,2); echo $result;

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.75
8.3.50.0240.01221.07
8.3.40.0110.00318.59
8.3.30.0070.00718.54
8.3.20.0040.00420.09
8.3.10.0040.00423.53
8.3.00.0040.00423.66
8.2.180.0180.00318.29
8.2.170.0070.00718.96
8.2.160.0110.00422.96
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0040.00421.04
8.2.120.0040.00426.35
8.2.110.0070.01422.08
8.2.100.0000.01117.78
8.2.90.0000.00817.63
8.2.80.0040.00418.61
8.2.70.0030.00617.80
8.2.60.0040.00417.50
8.2.50.0030.00617.55
8.2.40.0050.00317.63
8.2.30.0000.00717.68
8.2.20.0040.00417.73
8.2.10.0030.00617.92
8.2.00.0000.00717.96
8.1.280.0140.00725.92
8.1.270.0050.00523.81
8.1.260.0000.00728.09
8.1.250.0060.00328.09
8.1.240.0060.00323.87
8.1.230.0080.00419.18
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0000.00817.35
8.1.190.0040.00417.22
8.1.180.0030.00518.10
8.1.170.0040.00417.62
8.1.160.0000.00718.82
8.1.150.0050.00218.81
8.1.140.0030.00619.46
8.1.130.0000.00717.68
8.1.120.0000.00717.29
8.1.110.0040.00417.38
8.1.100.0040.00417.40
8.1.90.0060.00317.40
8.1.80.0030.00617.29
8.1.70.0040.00417.29
8.1.60.0090.00017.62
8.1.50.0050.00517.53
8.1.40.0000.00817.54
8.1.30.0050.00317.57
8.1.20.0000.00717.68
8.1.10.0080.00017.57
8.1.00.0030.00917.50
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0070.00017.91
8.0.270.0030.00517.91
8.0.260.0040.00417.24
8.0.250.0030.00316.80
8.0.240.0030.00316.95
8.0.230.0030.00316.75
8.0.220.0030.00316.70
8.0.210.0030.00316.84
8.0.200.0060.00016.87
8.0.190.0000.00716.77
8.0.180.0030.00516.75
8.0.170.0040.00416.82
8.0.160.0070.00016.84
8.0.150.0040.00416.67
8.0.140.0080.00016.67
8.0.130.0000.00513.20
8.0.120.0040.00416.81
8.0.110.0070.00016.89
8.0.100.0040.00416.84
8.0.90.0030.00316.72
8.0.80.0070.00716.79
8.0.70.0050.00216.65
8.0.60.0070.00016.89
8.0.50.0050.00316.80
8.0.30.0130.00717.10
8.0.20.0100.00817.40
8.0.10.0030.00516.81
8.0.00.0100.01016.82
7.4.330.0050.00016.69
7.4.320.0030.00316.34
7.4.300.0040.00416.44
7.4.290.0050.00216.56
7.4.280.0060.00316.56
7.4.270.0040.00416.52
7.4.260.0030.00316.62
7.4.250.0040.00416.56
7.4.240.0060.00216.59
7.4.230.0030.00316.57
7.4.220.0060.01216.61
7.4.210.0090.00816.49
7.4.200.0030.00316.48
7.4.160.0040.01116.47
7.4.150.0100.01017.40
7.4.140.0090.00817.86
7.4.130.0050.01316.52
7.4.120.0080.00816.38
7.4.110.0100.00716.39
7.4.100.0070.01716.54
7.4.90.0090.00916.58
7.4.80.0100.00719.39
7.4.70.0160.00016.43
7.4.60.0070.01016.41
7.4.50.0040.01116.59
7.4.40.0100.01016.59
7.4.30.0090.01216.46
7.4.00.0070.01114.99
7.3.330.0000.00613.25
7.3.320.0060.00013.29
7.3.310.0070.00016.32
7.3.300.0040.00416.26
7.3.290.0040.00416.14
7.3.280.0160.00316.29
7.3.270.0090.01517.40
7.3.260.0100.00616.39
7.3.250.0100.01016.30
7.3.240.0060.01016.33
7.3.230.0060.01116.57
7.3.210.0080.00816.27
7.3.200.0030.01316.64
7.3.190.0090.00616.20
7.3.180.0100.00616.65
7.3.170.0060.00916.59
7.3.160.0030.01216.26
7.3.120.0110.00715.07
7.3.110.0120.00614.66
7.3.100.0110.00314.61
7.3.90.0070.00314.75
7.3.80.0100.00714.85
7.3.70.0030.01014.79
7.3.60.0040.00714.60
7.3.50.0000.01014.72
7.3.40.0060.00614.96
7.3.30.0110.00414.69
7.3.20.0000.01316.71
7.3.10.0030.00716.74
7.3.00.0090.00616.67
7.2.330.0070.01116.70
7.2.320.0080.00816.61
7.2.310.0150.00916.51
7.2.300.0030.01316.56
7.2.290.0100.00716.72
7.2.250.0090.00915.07
7.2.240.0060.01314.78
7.2.230.0000.01015.22
7.2.220.0030.00715.17
7.2.210.0060.00614.73
7.2.200.0070.01014.96
7.2.190.0120.00315.04
7.2.180.0030.01014.87
7.2.170.0040.01114.99
7.2.60.0110.00416.67
7.2.00.0070.00319.62
7.1.330.0070.00715.39
7.1.320.0030.00715.63
7.1.310.0080.00415.62
7.1.300.0040.00815.63
7.1.290.0100.00315.67
7.1.280.0080.00415.48
7.1.270.0040.00815.73
7.1.260.0040.00715.68
7.1.200.0040.00415.68
7.1.100.0100.00017.91
7.1.70.0030.00516.95
7.1.60.0090.01619.06
7.1.50.0070.01716.90
7.1.00.0000.07722.33
7.0.200.1570.00714.50
7.0.60.0100.07719.77
7.0.50.0100.07717.90
7.0.40.0070.04720.09
7.0.30.0200.04320.16
7.0.20.0270.07720.26
7.0.10.0070.04020.30
7.0.00.0030.04020.10
5.6.280.0000.04321.12
5.6.210.0030.09020.53
5.6.200.0000.05718.20
5.6.190.0030.05320.46
5.6.180.0230.03720.61
5.6.170.0430.07720.45
5.6.160.0000.04720.40
5.6.150.0030.08318.22
5.6.140.0030.07318.23
5.6.130.0130.08018.28
5.6.120.0170.08020.97
5.6.110.0130.07320.89
5.6.100.0000.08720.89
5.6.90.0030.09021.11
5.6.80.0100.07320.39
5.5.350.0270.06720.34
5.5.340.0000.08718.09
5.5.330.0030.08320.39
5.5.320.0230.03720.19
5.5.310.0330.07320.36
5.5.300.0100.06017.98
5.5.290.0170.07317.97
5.5.280.0070.05020.78
5.5.270.0070.06720.79
5.5.260.0030.04020.65
5.5.250.0030.04020.71
5.5.240.0130.05720.27

preferences:
55.58 ms | 401 KiB | 5 Q