3v4l.org

run code in 300+ PHP versions simultaneously
<?php function func_a( $arg1, $arg2, $arg3 = null ) { $summ = $arg1 + $arg2; function func_arg( $a1, $a2 ) { $output = $GLOBALS['summ'] + $a1 + $a2; return $output; } } print func_a( 3, 5, func_arg( 7, 9 ) );

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.4.130.0100.01018.86
8.4.120.0110.00820.52
8.4.110.0080.01118.18
8.4.100.0130.00717.73
8.4.90.0120.00820.37
8.4.80.0060.00318.71
8.4.70.0030.00520.80
8.4.60.0100.00617.74
8.4.50.0100.01217.94
8.4.40.0080.01119.40
8.4.30.0110.00820.39
8.4.20.0050.00319.79
8.4.10.0090.00017.89
8.3.250.0130.00516.62
8.3.240.0040.00416.75
8.3.230.0050.00418.44
8.3.220.0050.00519.07
8.3.210.0100.00816.64
8.3.200.0070.00216.68
8.3.190.0060.00516.50
8.3.180.0020.00916.48
8.3.170.0070.01116.76
8.3.160.0100.00720.76
8.3.150.0110.00318.85
8.3.140.0000.00816.60
8.3.130.0030.00518.64
8.3.120.0080.00018.86
8.3.110.0080.00020.94
8.3.100.0050.00324.06
8.3.90.0000.00826.77
8.3.80.0030.00916.63
8.3.70.0120.00316.50
8.3.60.0110.01116.75
8.3.50.0160.00524.32
8.3.40.0150.00020.48
8.3.30.0040.01118.79
8.3.20.0050.00320.95
8.3.10.0040.00420.15
8.3.00.0090.00020.75
8.2.290.0090.00816.75
8.2.280.0040.00518.53
8.2.270.0110.00716.83
8.2.260.0040.01417.04
8.2.250.0050.00716.53
8.2.240.0000.01017.13
8.2.230.0060.00922.58
8.2.220.0050.00337.54
8.2.210.0070.00726.77
8.2.200.0080.00316.63
8.2.190.0070.01116.63
8.2.180.0070.00718.42
8.2.170.0110.00422.96
8.2.160.0000.01421.02
8.2.150.0050.00524.18
8.2.140.0070.00024.66
8.2.130.0030.00626.16
8.2.120.0030.00521.05
8.2.110.0040.00422.08
8.2.100.0030.00917.72
8.2.90.0080.00018.90
8.2.80.0000.00817.97
8.2.70.0060.00317.50
8.2.60.0000.00717.80
8.2.50.0040.00418.07
8.2.40.0040.00418.16
8.2.30.0040.00417.95
8.2.20.0040.00417.91
8.2.10.0040.00419.17
8.2.00.0040.00419.05
8.1.330.0100.00816.09
8.1.320.0120.00816.22
8.1.310.0070.00716.54
8.1.300.0100.00716.03
8.1.290.0070.01118.88
8.1.280.0090.00625.92
8.1.270.0030.00620.93
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00321.49
8.1.230.0080.00417.77
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0030.00617.23
8.1.190.0090.00017.13
8.1.180.0040.00418.10
8.1.170.0030.00618.65
8.1.160.0080.00018.74
8.1.150.0000.00718.80
8.1.140.0040.00418.79
8.1.130.0000.00721.86
8.1.120.0030.00517.19
8.1.110.0000.00717.35
8.1.100.0040.00417.29
8.1.90.0040.00417.22
8.1.80.0040.00417.32
8.1.70.0000.00817.32
8.1.60.0040.00417.51
8.1.50.0000.00817.45
8.1.40.0040.00417.34
8.1.30.0090.00317.47
8.1.20.0040.00417.47
8.1.10.0000.00717.41
8.1.00.0040.00417.43
8.0.300.0000.00718.77
8.0.290.0030.00616.63
8.0.280.0040.00418.40
8.0.270.0000.00717.98
8.0.260.0060.00019.88
8.0.250.0000.00716.95
8.0.240.0040.00416.98
8.0.230.0040.00417.00
8.0.220.0070.00016.77
8.0.210.0050.00316.87
8.0.200.0000.00616.98
8.0.190.0080.00016.87
8.0.180.0030.00516.93
8.0.170.0000.00816.93
8.0.160.0100.00016.93
8.0.150.0060.00316.86
8.0.140.0070.00016.75
8.0.130.0000.00513.28
8.0.120.0050.00216.89
8.0.110.0030.00316.85
8.0.100.0000.00816.77
8.0.90.0060.00316.89
8.0.80.0110.00716.82
8.0.70.0030.00516.87
8.0.60.0040.00416.84
8.0.50.0030.00316.77
8.0.30.0070.01016.89
8.0.20.0090.01017.10
8.0.10.0050.00316.79
8.0.00.0120.00617.00
7.4.330.0050.00015.55
7.4.320.0030.00316.40
7.4.300.0000.00616.55
7.4.290.0030.00316.35
7.4.280.0050.00316.45
7.4.270.0040.00416.46
7.4.260.0000.00513.24
7.4.250.0040.00416.47
7.4.240.0040.00416.38
7.4.230.0030.00316.43
7.4.220.0020.00516.61
7.4.210.0030.01216.48
7.4.200.0030.00316.57
7.4.130.0140.00816.54
7.4.120.0110.00716.56
7.4.110.0200.00316.48
7.4.100.0080.01216.52
7.4.90.0060.01116.26
7.4.80.0080.00919.39
7.4.70.0090.00916.33
7.4.60.0060.01116.57
7.4.50.0120.00316.65
7.4.40.0140.00316.01
7.4.30.0100.00716.43
7.4.20.0130.00916.66
7.4.10.0110.00816.33
7.4.00.0030.01216.48
7.3.330.0030.00316.20
7.3.320.0020.00213.17
7.3.310.0080.00016.47
7.3.300.0050.00216.36
7.3.290.0100.00816.33
7.3.280.0090.00616.29
7.3.260.0090.00916.67
7.3.240.0100.00716.33
7.3.230.0100.00716.40
7.3.210.0110.00516.30
7.3.200.0130.00616.47
7.3.190.0060.01116.60
7.3.180.0150.00316.48
7.3.170.0160.00016.32
7.3.160.0030.01316.55
7.3.150.0070.01316.21
7.3.140.0040.01116.42
7.3.130.0150.00016.27
7.3.120.0090.00616.36
7.3.110.0120.00916.42
7.3.100.0070.01416.17
7.3.90.0080.00816.27
7.3.80.0160.00016.21
7.3.70.0080.00816.32
7.3.60.0040.01216.14
7.3.50.0090.00616.15
7.3.40.0030.01216.32
7.3.30.0110.00416.34
7.3.20.0060.00916.40
7.3.10.0090.00616.37
7.3.00.0060.00916.24
7.2.330.0120.00616.27
7.2.320.0110.00816.28
7.2.310.0100.00716.23
7.2.300.0090.00916.36
7.2.290.0130.00316.31
7.2.280.0090.01016.49
7.2.270.0030.01316.61
7.2.260.0050.01016.24
7.2.250.0060.00916.61
7.2.240.0090.01216.25
7.2.230.0070.01016.34
7.2.220.0070.01116.56
7.2.210.0110.00516.58
7.2.200.0070.01016.40
7.2.190.0060.00916.39
7.2.180.0090.01216.39
7.2.170.0070.01116.44
7.2.160.0120.00316.46
7.2.150.0030.01316.35
7.2.140.0130.00316.45
7.2.130.0080.00816.54
7.2.120.0080.00816.50
7.2.110.0090.00616.45
7.2.100.0120.00616.50
7.2.90.0130.00316.32
7.2.80.0120.00916.42
7.2.70.0090.01216.60
7.2.60.0200.00616.56
7.2.50.0100.00616.48
7.2.40.0110.00716.52
7.2.30.0080.00816.41
7.2.20.0140.00316.52
7.2.10.0100.01316.61
7.2.00.0090.00916.48

preferences:
33.03 ms | 403 KiB | 5 Q