3v4l.org

run code in 300+ PHP versions simultaneously
<?php function plugin_A($int) { return 'string'; } function plugin_B($int) { return $int * 30; } function apply_filters($int) { $int = plugin_A($int); $int = plugin_B($int); return $int; } apply_filters(10);

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.110.0050.00516.70
8.3.100.0050.00324.06
8.3.90.0120.00626.77
8.3.80.0060.00316.50
8.3.70.0110.00416.63
8.3.60.0170.00016.63
8.3.50.0150.00323.65
8.3.40.0080.00821.93
8.3.30.0070.01118.77
8.3.20.0080.00024.18
8.3.10.0050.00324.66
8.3.00.0080.00026.16
8.2.230.0050.00520.94
8.2.220.0100.00737.54
8.2.210.0030.00726.77
8.2.200.0030.01016.75
8.2.190.0150.00016.63
8.2.180.0120.00625.92
8.2.170.0090.00618.95
8.2.160.0060.00922.96
8.2.150.0050.00325.66
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00426.35
8.2.110.0030.00621.13
8.2.100.0070.00418.22
8.2.90.0000.00819.23
8.2.80.0030.00617.97
8.2.70.0040.00417.61
8.2.60.0060.00617.63
8.2.50.0080.00017.63
8.2.40.0000.00817.75
8.2.30.0070.00018.04
8.2.20.0030.00518.05
8.2.10.0000.00819.10
8.2.00.0000.00719.29
8.1.290.0080.00418.88
8.1.280.0070.01025.92
8.1.270.0040.00423.99
8.1.260.0040.00428.09
8.1.250.0000.00728.09
8.1.240.0070.00319.13
8.1.230.0070.00417.42
8.1.220.0090.00017.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0030.00517.35
8.1.180.0070.00418.10
8.1.170.0080.00017.62
8.1.160.0000.00818.68
8.1.150.0050.00318.86
8.1.140.0040.00418.69
8.1.130.0030.00720.09
8.1.120.0000.00717.42
8.1.110.0030.00617.40
8.1.100.0080.00017.36
8.1.90.0030.00617.36
8.1.80.0070.00317.34
8.1.70.0070.00017.39
8.1.60.0030.00517.58
8.1.50.0060.00317.44
8.1.40.0040.00417.40
8.1.30.0040.00417.63
8.1.20.0000.00817.55
8.1.10.0060.00317.60
8.1.00.0050.00317.39
8.0.300.0030.00618.77
8.0.290.0000.00716.75
8.0.280.0030.00318.43
8.0.270.0070.00018.09
8.0.260.0030.00318.37
8.0.250.0000.00717.02
8.0.240.0040.00417.01
8.0.230.0040.00416.91
8.0.220.0030.00316.91
8.0.210.0000.00716.78
8.0.200.0080.00016.86
8.0.190.0040.00316.81
8.0.180.0030.00416.88
8.0.170.0040.00416.95
8.0.160.0000.00716.90
8.0.150.0040.00416.80
8.0.140.0040.00716.85
8.0.130.0030.00313.38
8.0.120.0030.00516.74
8.0.110.0050.00316.77
8.0.100.0050.00216.88
8.0.90.0070.00016.74
8.0.80.0080.01116.94
8.0.70.0040.00416.74
8.0.60.0070.00016.95
8.0.50.0040.00416.92
8.0.30.0090.00916.89
8.0.20.0090.01117.11
8.0.10.0000.00717.01
8.0.00.0060.01616.96
7.4.330.0000.00415.55
7.4.320.0000.00616.46
7.4.300.0050.00216.60
7.4.290.0070.00016.40
7.4.280.0030.00516.61
7.4.270.0000.00816.60
7.4.260.0050.00013.26
7.4.250.0030.00316.60
7.4.240.0000.00716.58
7.4.230.0060.00316.63
7.4.220.0030.00316.66
7.4.210.0090.00816.58
7.4.200.0000.00716.50
7.4.130.0160.00416.51
7.4.120.0110.01116.63
7.4.110.0140.01116.57
7.4.100.0100.01016.59
7.4.90.0090.01516.41
7.4.80.0090.00916.43
7.4.70.0100.01016.27
7.4.60.0090.01216.53
7.4.50.0090.00916.44
7.4.40.0070.01116.35
7.4.30.0100.00916.45
7.4.20.0080.01616.58
7.4.10.0140.01016.39
7.4.00.0150.00916.55
7.3.330.0080.00016.21
7.3.320.0000.00513.13
7.3.310.0070.00016.34
7.3.300.0070.00016.22
7.3.290.0050.01416.34
7.3.260.0110.00816.50
7.3.230.0160.00816.41
7.3.220.0130.00616.34
7.3.210.0160.00916.53
7.3.200.0090.01416.34
7.3.190.0070.01416.43
7.3.180.0030.01516.59
7.3.170.0120.00916.35
7.3.160.0120.00816.36
7.3.150.0060.01316.30
7.3.140.0140.00316.35
7.3.130.0090.00916.61
7.3.120.0070.01116.22
7.3.110.0130.00516.42
7.3.100.0100.01316.51
7.3.90.0030.01316.27
7.3.80.0140.00416.43
7.3.70.0120.00616.41
7.3.60.0120.00616.36
7.3.50.0070.01016.21
7.3.40.0040.01316.58
7.3.30.0110.01116.39
7.3.20.0120.00616.41
7.3.10.0110.01116.32
7.3.00.0340.00916.25
7.2.340.0180.00516.65
7.2.330.0100.01416.60
7.2.320.0090.01216.70
7.2.310.0120.00916.41
7.2.300.0130.01016.54
7.2.290.0140.00616.67
7.2.280.0160.00616.52
7.2.270.0100.01416.50
7.2.260.0090.01216.67
7.2.250.0060.01216.36
7.2.240.0070.01716.61
7.2.230.0100.01016.60
7.2.220.0160.00916.39
7.2.210.0060.01216.48
7.2.200.0060.01316.54
7.2.190.0090.00916.46
7.2.180.0040.01516.54
7.2.170.0090.01116.52
7.2.160.0110.00816.54
7.2.150.0150.00416.54
7.2.140.0100.01016.56
7.2.130.0140.00916.51
7.2.120.0110.00716.38
7.2.110.0090.01516.41
7.2.100.0130.00416.54
7.2.90.0170.00716.64
7.2.80.0090.01216.56
7.2.70.0070.01316.55
7.2.60.0130.00616.55
7.2.50.0140.00616.47
7.2.40.0110.01116.50
7.2.30.0240.00016.57
7.2.20.0060.01416.70
7.2.10.0080.01516.63
7.2.00.0180.00516.38

preferences:
34.94 ms | 403 KiB | 5 Q