3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Flextype { protected static $instance = null; public static function instance() { return !isset(self::$instance) and self::$instance = new Flextype(); } } var_export(Flextype::instance());

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.20.0210.00017.52
8.4.10.0030.00617.68
8.3.150.0070.01116.97
8.3.140.0140.00418.61
8.3.130.0080.00016.41
8.3.120.0160.00320.72
8.3.110.0080.00020.94
8.3.100.0090.00024.06
8.3.90.0050.00226.77
8.3.80.0060.00318.43
8.3.70.0070.00716.63
8.3.60.0170.00018.11
8.3.50.0100.01017.29
8.3.40.0090.01218.73
8.3.30.0150.00418.85
8.3.20.0000.00819.11
8.3.10.0070.00021.09
8.3.00.0000.00823.48
8.2.260.0080.01216.67
8.2.250.0100.00616.48
8.2.240.0110.00017.32
8.2.230.0040.00422.58
8.2.220.0030.00637.54
8.2.210.0040.00426.77
8.2.200.0060.00316.38
8.2.190.0140.00316.75
8.2.180.0160.00318.54
8.2.170.0090.00922.96
8.2.160.0030.01219.21
8.2.150.0000.00724.18
8.2.140.0110.00024.66
8.2.130.0050.00226.16
8.2.120.0040.00419.89
8.2.110.0030.00722.14
8.2.100.0040.00819.39
8.2.90.0040.00417.72
8.2.80.0040.00417.97
8.2.70.0080.00018.03
8.2.60.0090.00018.22
8.2.50.0030.00618.10
8.2.40.0080.00019.18
8.2.30.0000.00719.39
8.2.20.0040.00418.05
8.2.10.0000.00718.07
8.2.00.0000.00719.43
8.1.310.0060.00316.52
8.1.300.0060.00316.73
8.1.290.0090.00030.84
8.1.280.0070.01125.92
8.1.270.0130.00020.76
8.1.260.0150.00026.35
8.1.250.0040.00428.09
8.1.240.0100.00023.92
8.1.230.0070.00420.91
8.1.220.0030.00617.74
8.1.210.0040.00418.85
8.1.200.0060.00317.35
8.1.190.0030.00617.38
8.1.180.0080.00018.10
8.1.170.0000.00818.49
8.1.160.0000.00718.81
8.1.150.0040.00418.89
8.1.140.0040.00417.70
8.1.130.0040.00418.88
8.1.120.0040.00317.36
8.1.110.0000.00717.30
8.1.100.0040.00417.43
8.1.90.0040.00417.51
8.1.80.0040.00417.37
8.1.70.0070.00017.43
8.1.60.0000.00917.48
8.1.50.0030.00717.51
8.1.40.0030.00617.53
8.1.30.0000.00817.66
8.1.20.0070.00017.50
8.1.10.0040.00417.60
8.1.00.0050.00317.50
8.0.300.0040.00419.56
8.0.290.0140.00316.58
8.0.280.0040.00418.49
8.0.270.0050.00216.78
8.0.260.0030.00317.15
8.0.250.0040.00416.92
8.0.240.0030.00316.95
8.0.230.0030.00516.90
8.0.220.0090.00316.79
8.0.210.0040.00416.73
8.0.200.0030.00316.98
8.0.190.0040.00417.01
8.0.180.0050.00316.82
8.0.170.0040.00416.90
8.0.160.0000.00716.93
8.0.150.0030.00316.80
8.0.140.0050.00216.87
8.0.130.0000.00713.29
8.0.120.0040.00416.76
8.0.110.0070.00016.84
8.0.100.0040.00416.71
8.0.90.0050.00216.75
8.0.80.0070.01416.88
8.0.70.0070.00016.89
8.0.60.0050.00316.67
8.0.50.0000.00716.90
8.0.30.0100.00717.21
8.0.20.0100.00817.40
8.0.10.0050.00216.89
8.0.00.0080.01116.88
7.4.330.0000.00615.55
7.4.320.0000.00716.40
7.4.300.0050.00316.39
7.4.290.0000.00816.27
7.4.280.0030.00516.39
7.4.270.0040.00716.35
7.4.260.0020.00516.48
7.4.250.0030.00616.55
7.4.240.0000.00716.45
7.4.230.0080.00016.25
7.4.220.0040.00416.59
7.4.210.0060.00916.57
7.4.200.0080.00016.43
7.4.160.0100.00816.61
7.4.140.0110.00917.86
7.4.130.0070.01016.46
7.4.120.0150.00616.55
7.4.110.0070.01016.53
7.4.100.0150.00616.40
7.4.90.0120.00616.52
7.4.80.0060.01219.39
7.4.70.0170.00316.50
7.4.60.0100.00716.51
7.4.50.0070.00716.35
7.4.40.0150.00616.33
7.4.00.0110.00414.94
7.3.330.0050.00013.16
7.3.320.0000.00613.32
7.3.310.0060.00016.33
7.3.300.0000.00716.36
7.3.290.0030.00316.34
7.3.280.0050.00916.30
7.3.260.0090.01016.27
7.3.240.0110.00816.36
7.3.230.0060.01316.15
7.3.210.0130.00716.21
7.3.200.0040.01216.32
7.3.190.0110.01116.27
7.3.180.0090.01016.29
7.3.170.0120.00916.37
7.3.160.0120.00916.30
7.3.120.0050.01114.80
7.3.110.0050.01315.03
7.3.100.0070.01014.61
7.3.90.0060.00914.74
7.3.80.0090.00814.91
7.3.70.0080.00614.69
7.3.60.0060.01014.53
7.3.50.0050.00914.58
7.3.40.0040.01014.72
7.3.30.0080.00614.68
7.3.20.0120.00415.91
7.3.10.0090.00615.95
7.3.00.0190.00915.70
7.2.330.0140.00416.32
7.2.320.0070.01016.28
7.2.310.0030.01316.69
7.2.300.0110.01116.75
7.2.290.0160.00516.24
7.2.250.0010.01515.12
7.2.240.0100.00715.03
7.2.230.0070.00715.16
7.2.220.0100.00614.98
7.2.210.0070.01115.25
7.2.200.0060.01114.93
7.2.190.0100.00515.06
7.2.180.0050.01214.94
7.2.170.0070.00815.13
7.2.160.0080.00614.99
7.2.150.0060.00916.11
7.2.140.0070.00716.28
7.2.130.0150.00715.93
7.2.120.0130.00916.03
7.2.110.0120.01115.98
7.2.100.0150.00915.89
7.2.90.0150.00915.98
7.2.80.0130.00715.90
7.2.70.0190.00616.05
7.2.60.0330.00715.75
7.2.50.0380.00515.73
7.2.40.0320.01115.88
7.2.30.0320.00815.77
7.2.20.0410.00715.83
7.2.10.0400.00715.80
7.2.00.0450.00815.73
7.1.330.0090.00715.48
7.1.320.0060.00715.07
7.1.310.0070.00815.10
7.1.300.0050.01315.11
7.1.290.0040.01115.05
7.1.280.0100.00415.01
7.1.270.0070.00515.06
7.1.260.0050.00715.15
7.1.250.0190.00614.71
7.1.240.0170.00714.69
7.1.230.0150.00914.64
7.1.220.0200.00614.58
7.1.210.0160.00914.50
7.1.200.0130.00714.83
7.1.190.0150.00714.66
7.1.180.0210.00714.71
7.1.170.0770.00514.34
7.1.160.0380.00615.03
7.1.150.0330.01115.04
7.1.140.0420.00814.98
7.1.130.0350.00815.07
7.1.120.0430.00915.01
7.1.110.0330.00814.90
7.1.100.0350.00815.01
7.1.90.0360.00914.96
7.1.80.0400.01115.00
7.1.70.0330.00714.71
7.1.60.0430.00718.39
7.1.50.0540.00918.21
7.1.40.0400.00718.15
7.1.30.0470.00818.19
7.1.20.0420.00918.14
7.1.10.0380.00514.54
7.1.00.0430.00514.61
7.0.330.0340.00613.29
5.6.400.0100.01014.36
5.6.390.0100.00614.26
5.6.380.0100.00714.28

preferences:
31.51 ms | 403 KiB | 5 Q