3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fixers = ['short_array_syntax', 'unix_line_endings', 'elseif', 'long_array_syntax', 'echo_to_print', 'print_to_echo']; $conflicts = array( 'unalign_double_arrow' => 'align_double_arrow', 'unalign_equals' => 'align_equals', 'concat_without_spaces' => 'concat_with_spaces', 'concat_with_spaces' => 'concat_without_spaces', 'print_to_echo' => 'echo_to_print', 'short_array_syntax' => 'long_array_syntax', 'single_blank_line_before_namespace' => 'no_blank_lines_before_namespace', 'phpdoc_var_to_type' => 'phpdoc_type_to_var', 'phpdoc_type_to_var' => 'phpdoc_var_to_type', 'echo_to_print' => 'print_to_echo', 'psr4' => 'psr0', 'psr0' => 'psr4', 'long_array_syntax' => ['short_array_syntax', 'phpdoc_var_to_type'], 'no_blank_lines_before_namespace' => 'single_blank_line_before_namespace', 'align_double_arrow' => 'unalign_double_arrow', 'align_equals' => 'unalign_equals', ); foreach ($fixers as $fixer) { if (isset($conflicts[$fixer]) && $conflicts = array_intersect((array) $conflicts[$fixer], $fixers) ) { echo sprintf('Fixer "%s" conflicts with fixers "%s".', $fixer, implode('", "', $conflicts)); } }

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.0120.00918.55
8.3.50.0040.01118.28
8.3.40.0150.00018.58
8.3.30.0110.00318.67
8.3.20.0000.00720.35
8.3.10.0000.00721.95
8.3.00.0040.00419.26
8.2.180.0070.00718.54
8.2.170.0100.00622.96
8.2.160.0100.00322.07
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0000.00822.27
8.2.120.0070.00026.35
8.2.110.0060.00322.08
8.2.100.0060.00618.16
8.2.90.0040.00419.21
8.2.80.0080.00017.97
8.2.70.0000.00817.63
8.2.60.0090.00017.91
8.2.50.0080.00018.10
8.2.40.0000.00720.61
8.2.30.0040.00419.23
8.2.20.0040.00417.75
8.2.10.0000.00718.00
8.2.00.0000.00818.13
8.1.280.0090.00925.92
8.1.270.0080.00023.92
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0040.00720.87
8.1.230.0060.00617.79
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0060.00317.36
8.1.190.0000.00817.22
8.1.180.0040.00418.10
8.1.170.0040.00418.54
8.1.160.0040.00420.86
8.1.150.0020.00518.84
8.1.140.0060.00319.50
8.1.130.0000.00717.71
8.1.120.0080.00017.37
8.1.110.0040.00417.46
8.1.100.0050.00317.45
8.1.90.0040.00417.38
8.1.80.0070.00017.50
8.1.70.0050.00217.38
8.1.60.0040.00417.48
8.1.50.0090.00017.41
8.1.40.0030.00517.56
8.1.30.0030.00517.70
8.1.20.0050.00317.72
8.1.10.0040.00417.63
8.1.00.0030.00517.41
8.0.300.0040.00418.77
8.0.290.0070.00016.63
8.0.280.0030.00318.52
8.0.270.0070.00016.82
8.0.260.0060.00017.18
8.0.250.0030.00317.00
8.0.240.0030.00316.85
8.0.230.0000.00716.96
8.0.220.0070.00016.85
8.0.210.0030.00616.87
8.0.200.0000.00716.80
8.0.190.0080.00016.98
8.0.180.0040.00416.85
8.0.170.0050.00216.94
8.0.160.0030.00316.82
8.0.150.0000.00716.84
8.0.140.0050.00516.86
8.0.130.0030.00313.26
8.0.120.0040.00416.77
8.0.110.0040.00416.89
8.0.100.0030.00516.98
8.0.90.0050.00216.78
8.0.80.0040.01116.93
8.0.70.0080.00016.92
8.0.60.0070.00016.89
8.0.50.0030.00516.68
8.0.30.0080.01117.22
8.0.20.0150.00717.40
8.0.10.0040.00416.97
8.0.00.0030.01416.82
7.4.330.0000.00515.08
7.4.320.0030.00316.65
7.4.300.0030.00316.54
7.4.290.0030.00316.52
7.4.280.0030.00516.61
7.4.270.0060.00016.62
7.4.260.0050.00316.59
7.4.250.0030.00616.60
7.4.240.0000.00716.54
7.4.230.0030.00316.71
7.4.220.0070.01716.69
7.4.210.0070.00716.38
7.4.200.0030.00316.49
7.4.160.0030.01316.47
7.4.150.0040.01417.40
7.4.140.0110.00717.86
7.4.130.0030.01316.53
7.4.120.0070.01216.45
7.4.110.0100.01316.48
7.4.100.0090.00916.53
7.4.90.0070.01016.62
7.4.80.0130.00619.39
7.4.70.0180.00316.53
7.4.60.0040.01916.46
7.4.50.0040.01116.61
7.4.40.0090.00916.64
7.4.30.0100.01016.70
7.4.00.0030.01515.05
7.3.330.0040.00413.19
7.3.320.0020.00213.09
7.3.310.0080.00016.13
7.3.300.0030.00316.28
7.3.290.0080.00816.24
7.3.280.0080.01116.27
7.3.270.0240.01017.40
7.3.260.0110.00916.44
7.3.250.0080.01016.40
7.3.240.0070.00916.36
7.3.230.0170.00016.54
7.3.210.0110.00716.25
7.3.200.0060.01616.41
7.3.190.0070.01016.63
7.3.180.0040.01816.34
7.3.170.0100.00716.39
7.3.160.0060.01216.31
7.3.120.0090.00614.96
7.3.110.0030.01314.92
7.3.100.0030.01315.02
7.3.90.0070.00314.89
7.3.80.0040.01115.13
7.3.70.0030.01214.95
7.3.60.0110.00314.48
7.3.50.0000.01514.74
7.3.40.0070.00714.46
7.3.30.0080.00814.79
7.3.20.0060.01016.34
7.3.10.0040.00716.66
7.3.00.0080.00316.79
7.2.330.0030.01316.46
7.2.320.0100.00816.67
7.2.310.0070.01016.46
7.2.300.0080.00816.57
7.2.290.0060.01516.81
7.2.240.0060.00915.16
7.2.230.0000.01415.04
7.2.220.0110.00414.96
7.2.210.0000.01115.02
7.2.200.0090.00314.96
7.2.190.0090.00014.79
7.2.180.0060.00615.11
7.2.170.0030.01014.80
7.2.160.0030.01014.77
7.2.150.0070.01116.84
7.2.140.0030.01316.96
7.2.130.0030.01016.98
7.2.120.0100.00617.05
7.2.110.0060.00916.95
7.2.100.0070.01016.54
7.2.90.0060.00616.79
7.2.80.0060.00916.76
7.2.70.0000.01616.80
7.2.60.0020.01217.03
7.2.50.0040.01316.67
7.2.40.0000.01116.72
7.2.30.0070.01017.05
7.2.20.0080.00616.69
7.2.10.0030.01016.60
7.2.00.0140.00317.04
7.1.330.0110.00415.86
7.1.320.0030.01315.90
7.1.310.0060.01215.92
7.1.300.0030.01215.75
7.1.290.0070.00715.83
7.1.280.0090.00615.82
7.1.270.0070.01015.62
7.1.260.0060.01015.46
7.1.250.0030.01315.84
7.1.200.0000.01315.95
7.1.70.0030.00618.73
7.1.60.0040.01118.73
7.1.50.0000.01118.73
7.1.40.0040.00818.73
7.1.30.0040.00718.73
7.1.20.0070.00418.73
7.1.10.0000.00918.73
7.1.00.0000.00818.73
7.0.200.0000.00718.73
7.0.190.0080.00318.73
7.0.180.0000.01118.73
7.0.170.0040.00418.73
7.0.160.0070.00718.73
7.0.150.0040.00418.73
7.0.140.0050.00218.73
7.0.130.0000.01318.73
7.0.120.0000.01218.73
7.0.110.0030.01018.73
7.0.100.0060.00318.73
7.0.90.0020.00518.73
7.0.80.0070.00718.73
7.0.70.0000.01018.73
7.0.60.0080.00818.73
7.0.50.0030.00718.73
7.0.40.0040.01418.73
7.0.30.0060.00318.73
7.0.20.0030.01018.73
7.0.10.0000.01018.73
7.0.00.0040.00718.73
5.6.300.0070.03720.77
5.6.290.0060.04220.61
5.6.280.0060.04120.76
5.6.270.0060.05420.76
5.6.260.0030.04220.89
5.6.250.0100.03621.02
5.6.240.0100.07120.88
5.6.230.0100.05820.78
5.6.220.0100.04020.84
5.6.210.0070.04021.03
5.6.200.0030.04920.75
5.6.190.0000.06220.96
5.6.180.0000.04620.81
5.6.170.0070.04220.80
5.6.160.0100.03720.86
5.6.150.0060.03920.87
5.6.140.0030.04220.95
5.6.130.0100.04120.76
5.6.120.0030.07020.94
5.6.110.0100.07920.89
5.6.100.0000.04820.90
5.6.90.0100.04820.82
5.6.80.0030.04420.33
5.6.70.0030.04420.23
5.6.60.0030.04220.08
5.6.50.0000.04520.34
5.6.40.0030.04420.22
5.6.30.0000.05020.17
5.6.20.0040.03920.09
5.6.10.0000.04020.14
5.6.00.0100.03120.18
5.5.380.0070.04018.73
5.5.370.0070.07218.73
5.5.360.0070.04318.73
5.5.350.0060.03818.73
5.5.340.0040.03918.73
5.5.330.0070.07818.73
5.5.320.0030.06718.73
5.5.310.0160.02918.73
5.5.300.0070.03818.73
5.5.290.0000.07518.73
5.5.280.0000.08618.73
5.5.270.0070.04318.73
5.5.260.0030.04518.73
5.5.250.0030.04118.73
5.5.240.0030.04818.73
5.5.230.0030.04518.73
5.5.220.0000.04218.73
5.5.210.0070.03418.73
5.5.200.0140.04518.73
5.5.190.0000.04618.73
5.5.180.0000.04618.73
5.5.160.0100.05918.73
5.5.150.0000.04118.73
5.5.140.0000.04018.73
5.5.130.0030.04618.73
5.5.120.0070.04318.73
5.5.110.0030.03718.73
5.5.100.0070.03418.73
5.5.90.0070.04418.73
5.5.80.0040.04218.73
5.5.70.0150.03018.73
5.5.60.0070.04318.73
5.5.50.0030.04018.73
5.5.40.0000.04118.73
5.5.30.0040.03618.73
5.5.20.0060.03618.73
5.5.10.0030.04018.73
5.5.00.0140.02918.73
5.4.450.0070.06319.21
5.4.440.0000.04319.46
5.4.430.0030.03819.30
5.4.420.0000.04519.37
5.4.410.0030.04019.20
5.4.400.0030.04218.98
5.4.390.0030.03819.17
5.4.380.0000.04818.98
5.4.370.0130.02819.03
5.4.360.0070.03718.95
5.4.350.0090.03418.99
5.4.340.0000.04019.02
5.4.320.0000.04119.03
5.4.310.0070.03719.09
5.4.300.0030.03818.94
5.4.290.0070.05319.02
5.4.280.0030.03718.88
5.4.270.0070.03819.06
5.4.260.0030.04219.14
5.4.250.0030.04318.97
5.4.240.0060.03619.16
5.4.230.0100.06418.96
5.4.220.0030.04118.99
5.4.210.0000.04019.05
5.4.200.0100.03318.90
5.4.190.0030.03819.13
5.4.180.0030.03618.97
5.4.170.0040.03718.96
5.4.160.0030.04219.00
5.4.150.0070.03419.03
5.4.140.0100.03218.73
5.4.130.0000.04518.73
5.4.120.0110.02918.73
5.4.110.0060.03718.73
5.4.100.0070.03818.73
5.4.90.0030.03618.73
5.4.80.0030.04018.73
5.4.70.0000.03818.73
5.4.60.0000.04218.73
5.4.50.0040.03918.73
5.4.40.0070.03218.73
5.4.30.0030.03618.73
5.4.20.0100.02918.73
5.4.10.0100.03218.73
5.4.00.0030.03718.73
5.3.290.0030.03718.73
5.3.280.0000.04118.73
5.3.270.0000.04118.73
5.3.260.0100.04618.73
5.3.250.0000.03918.73
5.3.240.0000.04118.73
5.3.230.0030.03618.73
5.3.220.0030.04018.73
5.3.210.0070.03318.73
5.3.200.0060.03918.73
5.3.190.0070.06818.73
5.3.180.0030.03818.73
5.3.170.0070.04018.73
5.3.160.0000.04718.73
5.3.150.0130.02718.73
5.3.140.0000.04418.73
5.3.130.0070.04618.73
5.3.120.0000.04118.73
5.3.110.0150.02718.73
5.3.100.0000.04018.73
5.3.90.0000.05218.73
5.3.80.0030.07318.73
5.3.70.0100.03218.73
5.3.60.0030.06618.73
5.3.50.0030.03818.73
5.3.40.0090.03418.73
5.3.30.0030.04818.73
5.3.20.0030.03618.73
5.3.10.0030.03718.73
5.3.00.0000.06318.73
5.2.170.0030.03018.73
5.2.160.0030.03418.73
5.2.150.0040.02918.73
5.2.140.0110.02518.73
5.2.130.0070.03118.73
5.2.120.0000.04718.73
5.2.110.0060.05018.73
5.2.100.0030.03518.73
5.2.90.0000.03418.73
5.2.80.0030.02918.73
5.2.70.0030.02818.73
5.2.60.0090.02218.73
5.2.50.0000.06818.73
5.2.40.0070.04418.73
5.2.30.0030.02918.73
5.2.20.0030.02918.73
5.2.10.0030.05918.73
5.2.00.0030.05418.73
5.1.60.0000.02918.73
5.1.50.0030.03518.73
5.1.40.0070.03218.73
5.1.30.0000.03218.73
5.1.20.0030.03718.73
5.1.10.0060.02818.73
5.1.00.0030.02518.73
5.0.50.0030.01918.73
5.0.40.0090.02418.73
5.0.30.0000.05118.73
5.0.20.0070.03718.73
5.0.10.0000.04218.73
5.0.00.0070.03318.73
4.4.90.0040.01418.73
4.4.80.0030.01318.73
4.4.70.0080.01418.73
4.4.60.0000.02518.73
4.4.50.0030.03318.73
4.4.40.0030.03018.73
4.4.30.0040.03318.73
4.4.20.0030.02718.73
4.4.10.0060.01118.73
4.4.00.0030.05418.73
4.3.110.0000.01918.73
4.3.100.0060.02818.73
4.3.90.0070.02918.73
4.3.80.0040.04918.73
4.3.70.0000.02318.73
4.3.60.0080.01218.73
4.3.50.0000.02318.73
4.3.40.0060.02118.73
4.3.30.0030.03518.73
4.3.20.0030.02618.73
4.3.10.0000.01818.73
4.3.00.0000.01718.73

preferences:
65.17 ms | 400 KiB | 5 Q