3v4l.org

run code in 300+ PHP versions simultaneously
<?php //in utils.php: class Utils{ /** * does the blah thing. */ public static function blah($a, $b){ return $a+$b; } public static function somethingElse($a, $b){ return $a+$b; } } //then somewhere: echo Utils::blah(40,2);

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.0070.01016.38
8.3.50.0090.00618.20
8.3.40.0160.00018.52
8.3.30.0120.00318.64
8.3.20.0080.00018.94
8.3.10.0040.00419.07
8.3.00.0080.00023.66
8.2.180.0100.01018.29
8.2.170.0100.00722.96
8.2.160.0100.00318.76
8.2.150.0000.00724.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00421.02
8.2.110.0030.00720.43
8.2.100.0130.00017.66
8.2.90.0030.00617.75
8.2.80.0050.00318.59
8.2.70.0000.00817.50
8.2.60.0030.00617.50
8.2.50.0000.01017.63
8.2.40.0040.00417.80
8.2.30.0000.00819.24
8.2.20.0070.00417.86
8.2.10.0040.00417.84
8.2.00.0000.00719.29
8.1.280.0140.00725.92
8.1.270.0060.00323.92
8.1.260.0030.00526.35
8.1.250.0000.00828.09
8.1.240.0050.00523.91
8.1.230.0000.01121.03
8.1.220.0000.00918.61
8.1.210.0080.00018.77
8.1.200.0040.00417.22
8.1.190.0040.00417.10
8.1.180.0000.00918.10
8.1.170.0000.00817.62
8.1.160.0040.00418.75
8.1.150.0080.00018.69
8.1.140.0000.00817.47
8.1.130.0030.00318.84
8.1.120.0030.00317.35
8.1.110.0060.00317.34
8.1.100.0000.00817.31
8.1.90.0000.00817.35
8.1.80.0040.00417.22
8.1.70.0080.00017.35
8.1.60.0070.00417.40
8.1.50.0040.00417.37
8.1.40.0040.00417.39
8.1.30.0030.00517.43
8.1.20.0040.00417.61
8.1.10.0020.00517.49
8.1.00.0000.00717.29
8.0.300.0070.00018.77
8.0.290.0070.00016.63
8.0.280.0000.00718.54
8.0.270.0000.00717.21
8.0.260.0000.00617.15
8.0.250.0060.00016.81
8.0.240.0000.00816.83
8.0.230.0030.00316.78
8.0.220.0050.00316.80
8.0.210.0030.00316.88
8.0.200.0000.00716.77
8.0.190.0070.00016.88
8.0.180.0040.00416.85
8.0.170.0000.00916.76
8.0.160.0070.00016.86
8.0.150.0070.00016.71
8.0.140.0000.00716.77
8.0.130.0050.00013.14
8.0.120.0040.00416.62
8.0.110.0020.00516.57
8.0.100.0040.00416.77
8.0.90.0050.00216.70
8.0.80.0080.00816.74
8.0.70.0000.00716.58
8.0.60.0000.00716.76
8.0.50.0040.00416.53
8.0.30.0100.01017.05
8.0.20.0130.00717.40
8.0.10.0050.00216.86
8.0.00.0050.01316.74
7.4.330.0020.00215.55
7.4.320.0000.00616.38
7.4.300.0000.00616.50
7.4.290.0070.00016.56
7.4.280.0080.00016.56
7.4.270.0030.00316.44
7.4.260.0000.00816.53
7.4.250.0030.00316.43
7.4.240.0040.00416.34
7.4.230.0070.00016.36
7.4.220.0040.00416.55
7.4.210.0070.01216.42
7.4.200.0040.00416.50
7.4.140.0070.01117.86
7.4.130.0100.01316.40
7.4.120.0150.00416.52
7.4.110.0130.00516.48
7.4.100.0030.01816.36
7.4.90.0160.00616.42
7.4.80.0180.00619.39
7.4.70.0160.00516.41
7.4.60.0090.00616.36
7.4.50.0000.01416.48
7.4.40.0060.01016.32
7.4.00.0080.00814.87
7.3.330.0050.00013.19
7.3.320.0000.00613.30
7.3.310.0030.00316.34
7.3.300.0000.00616.29
7.3.290.0000.00816.11
7.3.280.0080.01116.24
7.3.260.0080.01016.32
7.3.240.0090.00916.46
7.3.230.0130.00716.28
7.3.210.0160.00316.63
7.3.200.0110.00616.29
7.3.190.0160.00316.61
7.3.180.0150.00016.50
7.3.170.0080.00816.52
7.3.160.0140.00316.45
7.3.120.0180.00014.55
7.3.110.0030.01314.85
7.3.100.0060.01014.70
7.3.90.0040.01214.65
7.3.80.0000.01414.98
7.3.70.0000.01314.76
7.3.60.0000.01814.82
7.3.50.0060.00314.59
7.3.40.0070.00714.77
7.3.30.0070.00714.74
7.3.20.0040.00716.28
7.3.10.0140.00616.48
7.3.00.0100.01016.21
7.2.330.0100.00716.55
7.2.320.0090.01116.43
7.2.310.0030.01316.79
7.2.300.0150.00416.39
7.2.290.0100.01416.65
7.2.250.0000.01515.09
7.2.240.0070.01114.85
7.2.230.0080.00614.69
7.2.220.0070.00314.84
7.2.210.0040.00814.82
7.2.200.0070.00314.61
7.2.190.0080.00414.62
7.2.180.0050.00514.69
7.2.170.0060.00314.98
7.2.160.0030.01014.36
7.2.150.0060.00916.77
7.2.140.0000.01316.83
7.2.130.0100.00816.23
7.2.120.0040.01116.53
7.2.110.0060.00916.38
7.2.100.0090.00916.33
7.2.90.0100.00616.44
7.2.80.0080.00716.46
7.2.70.0160.00816.14
7.2.60.0170.00616.00
7.2.50.0170.00615.96
7.2.40.0190.00315.75
7.2.30.0190.00715.92
7.2.20.0240.00816.15
7.2.10.0190.00815.93
7.2.00.0150.00815.84
7.1.330.0100.00315.44
7.1.320.0060.00315.59
7.1.310.0030.01015.63
7.1.300.0070.00715.60
7.1.290.0030.00615.55
7.1.280.0000.01215.61
7.1.270.0030.00515.52
7.1.260.0030.01315.18
7.1.250.0120.00515.42
7.1.240.0040.00915.68
7.1.230.0030.01015.56
7.1.220.0030.00715.55
7.1.210.0080.00315.56
7.1.200.0090.00515.52
7.1.190.0040.00715.61
7.1.180.0060.00315.48
7.1.170.0210.00514.54
7.1.160.0200.00314.65
7.1.150.0170.01114.75
7.1.140.0330.00714.64
7.1.130.0200.00614.58
7.1.120.0150.01014.50
7.1.110.0220.00514.69
7.1.100.0540.00714.63
7.1.90.0210.01014.76
7.1.80.0190.01014.59
7.1.70.0230.00914.72
7.1.60.0310.00923.74
7.1.50.0370.00523.56
7.1.40.0310.01023.67
7.1.30.0320.00823.70
7.1.20.0330.01023.72
7.1.10.0280.01214.45
7.1.00.0210.00514.53
7.0.330.0030.01115.14
5.6.400.0060.00614.37
5.6.390.0080.00314.08
5.6.380.0150.00014.09

preferences:
33.84 ms | 400 KiB | 5 Q