3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'Inicio da string: <?php echo "Hello World!"; ?> Obrigado!'; $splitedString = token_get_all( code: $string, ); print_r($splitedString); $sanizedArray = [ [ 'string' => 'Inicio da string:', 'type' => 'text', ], [ 'string' => '<?php echo "Hello World!"; ?>', 'type' => 'code', ], [ 'string' => 'Obrigado!', 'type' => 'text', ], ];

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.0040.01418.18
8.3.50.0110.00416.41
8.3.40.0070.00720.33
8.3.30.0070.00718.42
8.3.20.0070.00024.18
8.3.10.0000.00724.66
8.3.00.0040.00426.16
8.2.180.0100.01018.42
8.2.170.0110.00418.80
8.2.160.0030.01022.96
8.2.150.0000.00825.66
8.2.140.0100.00024.66
8.2.130.0000.00826.16
8.2.120.0000.00819.54
8.2.110.0070.01119.36
8.2.100.0040.00817.72
8.2.90.0040.00417.63
8.2.80.0040.00418.84
8.2.70.0050.00317.50
8.2.60.0070.00017.80
8.2.50.0040.00418.05
8.2.40.0000.00817.97
8.2.30.0040.00418.01
8.2.20.0110.00318.86
8.2.10.0090.00518.82
8.2.00.0130.00318.81
8.1.280.0130.00725.92
8.1.270.0050.00324.66
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0060.00323.91
8.1.230.0040.00820.97
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0070.00317.11
8.1.190.0050.00317.22
8.1.180.0090.00018.10
8.1.170.0070.00018.65
8.1.160.0040.00419.01
8.1.150.0060.00618.57
8.1.140.0080.00818.47
8.1.130.0100.00718.57
8.1.120.0170.00018.50
8.1.110.0160.00318.57
8.1.100.0110.00618.50
8.1.90.0120.00518.61
8.1.80.0080.00818.54
8.1.70.0080.00718.56
8.1.60.0210.00018.68
8.1.50.0180.00318.62
8.1.40.0050.01418.81
8.1.30.0160.00318.77
8.1.20.0200.00018.76
8.1.10.0030.00718.54
8.1.00.0120.00618.45
8.0.300.0060.00318.92
8.0.290.0060.00316.63
8.0.280.0030.00318.38
8.0.270.0080.00017.94
8.0.260.0150.00017.85
8.0.250.0100.00618.00
8.0.240.0150.00017.86
8.0.230.0110.00717.89
8.0.220.0120.00417.91
8.0.210.0140.00317.97
8.0.200.0110.00518.03
8.0.190.0140.00318.05
8.0.180.0110.00518.04
8.0.170.0110.00418.01
8.0.160.0070.00717.90
8.0.150.0140.00217.99
8.0.140.0100.00317.81
8.0.130.0090.00017.84
8.0.120.0080.00217.93
8.0.110.0080.00017.93
8.0.100.0070.00317.85
8.0.90.0030.00817.84
8.0.80.0150.00017.83
8.0.70.0100.00318.03
8.0.60.0090.00617.79
8.0.50.0120.00017.82
8.0.30.0070.00717.82
8.0.20.0110.00318.04
8.0.10.0120.00318.05

preferences:
45.64 ms | 401 KiB | 5 Q