3v4l.org

run code in 200+ PHP versions simultaneously
<?php function foo(object $bar) { } foo(new stdClass());

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)
7.4.10.0130.00316.49
7.4.00.0060.00915.30
7.3.130.0090.00616.17
7.3.120.0090.00615.45
7.3.110.0080.00815.44
7.3.100.0080.00915.53
7.3.90.0060.00815.40
7.3.80.0060.00914.99
7.3.70.0080.00814.94
7.3.60.0090.00714.91
7.3.50.0110.00614.83
7.3.40.0070.00814.79
7.3.30.0080.00714.76
7.3.20.0190.00815.13
7.3.10.0250.00614.96
7.3.00.0250.00614.93
7.2.260.0090.00716.08
7.2.250.0080.00815.51
7.2.240.0020.01415.54
7.2.230.0140.00315.74
7.2.220.0020.01215.64
7.2.210.0090.00515.16
7.2.200.0070.00815.13
7.2.190.0100.00614.99
7.2.180.0110.00614.99
7.2.170.0090.00814.94
7.2.160.0090.00714.87
7.2.150.0180.00715.10
7.2.140.0200.00615.14
7.2.130.0250.00715.09
7.2.120.0210.00815.07
7.2.110.0220.00615.08
7.2.100.0220.00815.09
7.2.90.0240.00815.33
7.2.80.0250.00715.30
7.2.70.0210.00615.26
7.2.60.0200.00615.43
7.2.50.0230.00715.37
7.2.40.0230.00715.46
7.2.30.0270.00915.47
7.2.20.0360.00715.42
7.2.10.0230.00815.45
7.2.00.0230.00715.47
7.1.330.0060.00914.33
7.1.320.0080.00614.47
7.1.310.0440.00814.12
7.1.300.0130.00614.31
7.1.290.0160.00714.23
7.1.280.0260.00614.12
7.1.270.0420.00914.04
7.1.260.0190.00614.07
7.1.250.0300.00614.10
7.1.240.0250.00714.07
7.1.230.0260.00914.03
7.1.220.0250.00914.03
7.1.210.0250.01014.20
7.1.200.0240.00714.29
7.1.190.0230.00814.15
7.1.180.0270.00714.23
7.1.170.0260.00814.18
7.1.160.0330.00714.36
7.1.150.0380.00714.41
7.1.140.0280.00714.39
7.1.130.0240.00814.34
7.1.120.0260.00914.38
7.1.110.0260.00714.36
7.1.100.0240.00914.33
7.1.90.0290.00914.39
7.1.80.0360.00714.23
7.1.70.0290.00614.13
7.1.60.0410.01015.60
7.1.50.0320.00715.60
7.1.40.0290.00915.43
7.1.30.0280.00915.48
7.1.20.0300.00715.49
7.1.10.0280.00714.08
7.1.00.0300.00613.99
7.0.330.0290.00713.68
7.0.320.0130.00315.09
7.0.310.0100.00515.22
7.0.300.0100.00615.09
7.0.290.0070.01014.77
7.0.280.0110.00714.79
7.0.270.0120.00914.92
7.0.260.0030.01314.99
7.0.250.0180.00015.08
7.0.240.0120.00315.04
7.0.230.0000.01615.15
7.0.220.0090.00614.96
7.0.210.0110.01115.06
7.0.200.0100.00715.14
7.0.190.0080.00814.92
7.0.180.0090.00914.94
7.0.170.0150.00015.21
7.0.160.0120.00615.08
7.0.150.0210.00415.08
7.0.140.0150.00315.05
7.0.130.0080.00815.16
7.0.120.0100.01014.97
7.0.110.0060.00915.07
7.0.100.0070.00814.98
7.0.90.0030.01315.19
7.0.80.0070.00814.98
7.0.70.0140.00414.91
7.0.60.0050.01014.93
7.0.50.0040.01215.11
7.0.40.0060.00914.83
7.0.30.0170.00014.86
7.0.20.0100.01015.00
7.0.10.0090.00715.02
7.0.00.0140.00315.07
5.6.400.0130.00814.32
5.6.390.0130.00814.34
5.6.380.0150.00714.27
5.6.370.0040.01515.47
5.6.360.0120.00915.94
5.6.350.0130.00615.71
5.6.340.0120.01215.81
5.6.330.0120.01215.59
5.6.320.0140.00315.64
5.6.310.0090.01115.62
5.6.300.0070.01016.02
5.6.290.0140.00416.04
5.6.280.0070.01715.47
5.6.270.0060.01215.70
5.6.260.0120.00415.79
5.6.250.0090.01415.66
5.6.240.0070.01115.49
5.6.230.0090.00915.71
5.6.220.0150.00615.57
5.6.210.0140.00315.70
5.6.200.0150.00315.75
5.6.190.0070.01015.59
5.6.180.0060.01215.71
5.6.170.0100.01015.69
5.6.160.0130.00615.44
5.6.150.0070.01015.47
5.6.140.0040.01215.86
5.6.130.0090.01215.56
5.6.120.0100.00715.66
5.6.110.0030.01615.81
5.6.100.0090.00915.81
5.6.90.0060.01215.69
5.6.80.0030.01415.55
5.6.70.0040.01615.70
5.6.60.0110.00915.56
5.6.50.0060.01615.42
5.6.40.0140.00415.42
5.6.30.0080.00815.68
5.6.20.0110.00715.48
5.6.10.0140.00615.50
5.6.00.0130.00315.68
5.5.380.0090.01315.76
5.5.370.0030.01615.66
5.5.360.0030.01415.49
5.5.350.0110.00815.61
5.5.340.0030.01615.37
5.5.330.0090.01015.33
5.5.320.0090.00915.36
5.5.310.0070.01215.50
5.5.300.0040.01615.66
5.5.290.0190.00315.55
5.5.280.0120.00815.64
5.5.270.0140.00615.45
5.5.260.0210.01115.54
5.5.250.0080.01315.40
5.5.240.0170.00315.63
5.5.230.0090.01615.47
5.5.220.0080.01915.49
5.5.210.0120.01315.69
5.5.200.0100.01015.41
5.5.190.0080.01115.35
5.5.180.0130.00615.65
5.5.170.0130.00715.56
5.5.160.0130.00715.44
5.5.150.0070.01115.53
5.5.140.0130.00615.54
5.5.130.0090.01115.21
5.5.120.0140.00715.45
5.5.110.0070.01115.28
5.5.100.0110.00815.51
5.5.90.0100.01015.53
5.5.80.0090.00915.49
5.5.70.0090.00915.62
5.5.60.0150.00315.30
5.5.50.0070.01115.53
5.5.40.0030.01315.60
5.5.30.0140.01015.45
5.5.20.0120.00815.31
5.5.10.0050.01415.34
5.5.00.0160.00415.65
5.4.450.0110.00512.35
5.4.440.0080.00712.36
5.4.430.0060.00712.46
5.4.420.0180.00312.26
5.4.410.0060.00912.39
5.4.400.0090.00612.32
5.4.390.0110.00312.36
5.4.380.0110.00812.30
5.4.370.0100.00612.46
5.4.360.0040.01212.36
5.4.350.0030.01312.51
5.4.340.0090.00612.38
5.4.330.0030.01212.21
5.4.320.0080.00812.25
5.4.310.0070.00712.23
5.4.300.0040.01212.57
5.4.290.0130.00712.28
5.4.280.0140.00412.35
5.4.270.0100.00512.34
5.4.260.0140.00012.34
5.4.250.0040.01112.39
5.4.240.0040.01112.41
5.4.230.0040.01112.23
5.4.220.0070.00712.48
5.4.210.0050.01012.26
5.4.200.0150.00012.10
5.4.190.0000.01512.30
5.4.180.0110.00812.29
5.4.170.0100.01012.37
5.4.160.0070.00712.09
5.4.150.0030.01012.18
5.4.140.0000.01412.37
5.4.130.0070.00712.17
5.4.120.0100.00712.53
5.4.110.0100.00712.16
5.4.100.0130.00012.32
5.4.90.0070.00712.29
5.4.80.0040.01112.64
5.4.70.0060.00612.38
5.4.60.0080.00512.46
5.4.50.0110.00312.34
5.4.40.0100.00512.46
5.4.30.0060.01212.49
5.4.20.0060.00912.30
5.4.10.0070.00712.50
5.4.00.0130.00012.28
5.3.290.0000.01413.04
5.3.280.0130.00012.92
5.3.270.0050.00812.88
5.3.260.0000.01413.18
5.3.250.0130.00012.97
5.3.240.0030.01112.91
5.3.230.0060.00612.87
5.3.220.0000.01612.90
5.3.210.0100.00312.82
5.3.200.0100.00312.80
5.3.190.0110.00712.97
5.3.180.0030.00913.03
5.3.170.0030.01113.08
5.3.160.0000.01313.13
5.3.150.0030.01013.16
5.3.140.0000.01413.02
5.3.130.0030.01413.03
5.3.120.0090.00412.94
5.3.110.0080.00813.03
5.3.100.0030.01013.02
5.3.90.0070.00713.10
5.3.80.0150.00012.82
5.3.70.0000.01512.84
5.3.60.0070.00712.94
5.3.50.0000.01212.87
5.3.40.0030.01012.95
5.3.30.0080.00812.95
5.3.20.0060.00612.91
5.3.10.0080.00812.82
5.3.00.0100.00312.68
5.2.170.0000.01212.01
5.2.160.0000.01211.95
5.2.150.0040.00811.99
5.2.140.0140.00011.97
5.2.130.0120.00011.96
5.2.120.0050.00912.19
5.2.110.0160.00011.90
5.2.100.0100.00311.97
5.2.90.0090.00611.90
5.2.80.0090.00911.83
5.2.70.0100.00711.86
5.2.60.0100.00711.83
5.2.50.0050.01112.07
5.2.40.0040.01211.83
5.2.30.0120.01011.90
5.2.20.0100.00511.83
5.2.10.0080.00811.83
5.2.00.0040.01111.83
5.1.60.0110.00511.83
5.1.50.0110.00211.83
5.1.40.0090.00611.83
5.1.30.0060.00611.83
5.1.20.0110.00311.83
5.1.10.0090.00511.83
5.1.00.0110.00311.83
5.0.50.0110.00411.83
5.0.40.0000.01111.83
5.0.30.0040.00811.83
5.0.20.0060.00611.83
5.0.10.0070.00511.83
5.0.00.0060.00611.83
4.4.90.0040.00411.83
4.4.80.0060.00211.83
4.4.70.0040.00411.83
4.4.60.0030.00511.83
4.4.50.0070.00011.83
4.4.40.0030.00311.83
4.4.30.0070.00011.83
4.4.20.0050.00211.83
4.4.10.0040.00411.83
4.4.00.0030.00311.83
4.3.110.0050.00311.83
4.3.100.0070.00011.83
4.3.90.0000.00911.83
4.3.80.0000.00711.83
4.3.70.0040.00411.83
4.3.60.0060.00011.83
4.3.50.0000.00611.83
4.3.40.0070.00011.83
4.3.30.0030.00611.83
4.3.20.0040.00511.83
4.3.10.0030.00311.83
4.3.00.0000.00711.83