3v4l.org

run code in 200+ PHP versions simultaneously
<?php class ClassName { public function foo($bar): static { return new ClassName(); } } $instance = new ClassName(); $instance->foo();

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.3.80.0080.00314.76
7.3.70.0030.00714.42
7.3.60.0080.00314.47
7.3.50.0080.00314.54
7.3.40.0070.01114.27
7.3.30.0070.00714.37
7.3.20.4920.01014.25
7.3.10.1950.00514.57
7.3.00.3040.00514.57
7.2.210.0000.02014.59
7.2.200.0060.00914.49
7.2.190.0080.00814.38
7.2.180.0030.00914.33
7.2.170.0060.00614.47
7.2.160.0000.01114.41
7.2.150.0330.00814.38
7.2.140.5100.00314.59
7.2.130.1570.00814.60
7.2.120.1660.00914.72
7.2.110.2150.00714.57
7.2.100.1400.01014.68
7.2.90.0500.01114.67
7.2.80.0620.01014.94
7.2.70.0460.00414.76
7.2.60.0540.00814.79
7.2.50.0870.00614.70
7.2.40.0670.01315.71
7.2.30.0670.00715.31
7.2.20.0560.01015.41
7.2.10.0620.00915.29
7.2.00.0960.00715.28
7.1.310.0040.00913.68
7.1.300.0030.01013.36
7.1.290.0090.00613.38
7.1.280.0070.00713.58
7.1.270.0070.01013.45
7.1.260.0070.01113.67
7.1.250.3250.00713.40
7.1.240.1310.01213.57
7.1.230.2110.00713.63
7.1.220.2090.00813.45
7.1.210.1330.00713.74
7.1.200.0530.01113.58
7.1.190.0530.00913.57
7.1.180.0930.00913.62
7.1.170.0630.00613.78
7.1.160.0570.00914.22
7.1.150.0750.01114.17
7.1.140.0720.00714.31
7.1.130.0720.01014.24
7.1.120.1050.01014.35
7.1.110.0740.00714.17
7.1.100.0740.00914.17
7.1.90.0650.00914.06
7.1.80.0670.00814.19
7.1.70.0440.01113.89
7.1.60.0920.01217.44
7.1.50.0570.00617.45
7.1.40.0590.00917.28
7.1.30.0820.01017.43
7.1.20.0600.01017.37
7.1.10.0570.00913.80
7.1.00.0420.01013.81
7.0.330.1950.00413.25
7.0.320.1910.00813.43
7.0.310.1770.01413.27
7.0.300.0460.00913.36
7.0.290.0560.01113.32
7.0.280.0830.01013.23
7.0.270.0980.00813.32
7.0.260.1000.00813.27
7.0.250.0860.00813.42
7.0.240.0760.00813.41
7.0.230.1650.00613.31
7.0.220.0760.01013.30
7.0.210.0580.00913.48
7.0.200.0590.00813.28
7.0.190.0600.01013.40
7.0.180.0630.01013.41
7.0.170.0630.00613.41
7.0.160.0650.00213.45
7.0.150.0330.01213.43
7.0.140.0500.00713.32
7.0.130.0420.00813.37
7.0.120.0410.00713.53
7.0.110.0500.00913.40
7.0.100.0550.00513.49
7.0.90.0470.00613.37
7.0.80.0540.00313.57
7.0.70.0420.01013.20
7.0.60.0370.00713.14
7.0.50.1180.01313.43
7.0.40.0370.00913.43
7.0.30.0430.00313.46
7.0.20.0440.00613.48
7.0.10.0500.00813.36
7.0.00.0450.00713.49
5.6.400.0160.00514.36
5.6.390.0060.01314.17
5.6.380.0170.00714.11
5.6.370.0210.00514.02
5.6.360.0160.00814.17
5.6.350.0140.00814.05
5.6.340.0150.00514.23
5.6.330.0170.00914.22
5.6.320.0160.00814.01
5.6.310.0150.00814.19
5.6.300.0230.02415.79
5.6.290.0170.02515.88
5.6.280.0150.02815.65
5.6.270.0170.02415.80
5.6.260.0210.02315.88
5.6.250.0220.02115.81
5.6.240.0210.02215.76
5.6.230.0150.02615.79
5.6.220.0190.02415.80
5.6.210.0170.02415.81
5.6.200.0120.02815.77
5.6.190.0180.02515.78
5.6.180.0140.02415.73
5.6.170.0180.02415.84
5.6.160.0180.02215.82
5.6.150.0160.02915.65
5.6.140.0200.02615.81
5.6.130.0140.02415.73
5.6.120.0170.02315.80
5.6.110.0180.02015.72
5.6.100.0110.02915.59
5.6.90.0130.03015.76
5.6.80.0140.02815.50
5.6.70.0170.02415.64
5.6.60.0170.02515.55
5.6.50.0150.02715.55
5.6.40.0160.02315.51
5.6.30.0130.02515.58
5.6.20.0160.02115.49
5.6.10.0180.02115.50
5.6.00.0160.02515.56
5.5.380.0120.00611.97
5.5.370.0090.00711.98
5.5.360.0130.00812.04
5.5.350.0100.00411.98
5.5.340.0150.00711.95
5.5.330.0120.00811.95
5.5.320.0160.00711.98
5.5.310.0110.00612.02
5.5.300.0150.00511.95
5.5.290.0090.00911.78
5.5.280.0070.00911.85
5.5.270.0110.00711.88
5.5.260.0130.00511.61
5.5.250.0110.00411.87
5.5.240.0120.01011.98
5.5.230.0140.00611.65
5.5.220.0130.00611.88
5.5.210.0140.00311.91
5.5.200.0120.00611.93
5.5.190.0090.00711.91
5.5.180.0100.00411.69
5.5.170.0130.00811.93
5.5.160.0150.00511.69
5.5.150.0110.00411.84
5.5.140.0090.00511.76
5.5.130.0100.00711.77
5.5.120.0090.00511.90
5.5.110.0150.00311.85
5.5.100.0130.00611.82
5.5.90.0130.00311.93
5.5.80.0140.00611.67
5.5.70.0130.00711.70
5.5.60.0100.00811.67
5.5.50.0120.00711.79
5.5.40.0130.00411.98
5.5.30.0110.00911.55
5.5.20.0120.01011.57
5.5.10.0140.00611.86
5.5.00.0110.00811.81
5.4.450.0110.00411.04
5.4.440.0080.00510.93
5.4.430.0100.00410.94
5.4.420.0110.00510.99
5.4.410.0130.00610.86
5.4.400.0080.00710.99
5.4.390.0100.00910.96
5.4.380.0070.00710.94
5.4.370.0090.00411.05
5.4.360.0090.00710.86
5.4.350.0110.00210.86
5.4.340.0080.00610.96
5.4.330.0100.00610.95
5.4.320.0080.00511.00
5.4.310.0130.00410.78
5.4.300.0090.00511.07
5.4.290.0120.00710.94
5.4.280.0120.00811.01
5.4.270.0040.00810.90
5.4.260.0090.00810.97
5.4.250.0090.01110.91
5.4.240.0090.00611.08
5.4.230.0110.00510.99
5.4.220.0090.00610.85
5.4.210.0090.00410.85
5.4.200.0130.00510.84
5.4.190.0110.00611.09
5.4.180.0130.00310.76
5.4.170.0070.00911.03
5.4.160.0090.00710.92
5.4.150.0080.00410.93
5.4.140.0090.00710.86
5.4.130.0120.00411.09
5.4.120.0090.00510.88
5.4.110.0120.00310.85
5.4.100.0050.00811.02
5.4.90.0140.00510.95
5.4.80.0130.00310.95
5.4.70.0110.00610.92
5.4.60.0130.00611.06
5.4.50.0120.00210.98
5.4.40.0050.01011.02
5.4.30.0090.00510.95
5.4.20.0070.00611.02
5.4.10.0110.00210.97
5.4.00.0090.00510.92
5.3.290.0070.00710.63
5.3.280.0070.00910.57
5.3.270.0120.00710.58
5.3.260.0070.00610.59
5.3.250.0100.00210.61
5.3.240.0080.00510.54
5.3.230.0130.00310.61
5.3.220.0110.00510.63
5.3.210.0100.00510.60
5.3.200.0090.00410.56
5.3.190.0100.00710.68
5.3.180.0110.00410.74
5.3.170.0090.00610.64
5.3.160.0140.00210.75
5.3.150.0100.00410.75
5.3.140.0090.00510.69
5.3.130.0110.00410.62
5.3.120.0090.00610.64
5.3.110.0100.00710.67
5.3.100.0070.00710.72
5.3.90.0130.00410.71
5.3.80.0080.00810.59
5.3.70.0120.00510.59
5.3.60.0130.00310.65
5.3.50.0090.00410.61
5.3.40.0100.00410.44
5.3.30.0070.00610.60
5.3.20.0080.00510.53
5.3.10.0050.00710.52
5.3.00.0100.00410.48
5.2.170.0050.00510.03
5.2.160.0050.0069.95
5.2.150.0080.00710.01
5.2.140.0110.0029.86
5.2.130.0100.0049.96
5.2.120.0080.0029.98
5.2.110.0100.0019.83
5.2.100.0080.0069.81
5.2.90.0050.0049.96
5.2.80.0050.0069.90
5.2.70.0060.0059.88
5.2.60.0100.0059.88
5.2.50.0080.0059.96
5.2.40.0070.00810.02
5.2.30.0090.0049.90
5.2.20.0100.0049.74
5.2.10.0090.0039.72
5.2.00.0040.0069.74
5.1.60.0080.0039.70
5.1.50.0100.0029.70
5.1.40.0090.0039.70
5.1.30.0040.0079.70
5.1.20.0090.0039.70
5.1.10.0080.0039.70
5.1.00.0060.0069.70
5.0.50.0060.0039.70
5.0.40.0060.0039.70
5.0.30.0070.0029.70
5.0.20.0060.0019.70
5.0.10.0080.0019.70
5.0.00.0060.0029.70
4.4.90.0040.0029.70
4.4.80.0050.0049.70
4.4.70.0040.0059.70
4.4.60.0060.0039.70
4.4.50.0050.0039.70
4.4.40.0040.0039.70
4.4.30.0040.0069.70
4.4.20.0060.0049.70
4.4.10.0030.0049.70
4.4.00.0050.0049.70
4.3.110.0030.0049.70
4.3.100.0030.0049.70
4.3.90.0030.0049.70
4.3.80.0020.0069.70
4.3.70.0040.0039.70
4.3.60.0000.0079.70
4.3.50.0050.0029.70
4.3.40.0030.0059.70
4.3.30.0040.0059.70
4.3.20.0040.0039.70
4.3.10.0050.0029.70
4.3.00.0030.0029.70