3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = range(0, 1000); $level = 9; $params = strtr(base64_encode(gzcompress(serialize($a), $level)), '+/=', 'äåö'); $className = 'SomeClass_' . $params; var_dump(strlen($params)); eval('class ' . $className . ' {}'); var_dump(new $className());
Output for 5.0.0 - 7.1.0
int(1856) object(SomeClass_eNpN2smxBbuNRVGXEj3wZY2GskFRvpeC7xLcg7M84I5s�O9�5Pvkn���55�vX3�T3�Q3�81�i9�yt�qtf5vf5Ftk0cUWX2LJpZZe5qLfIosutvgSSy619DIX�xZZdLHFl1hyqaWXufi3yKKLLb7EkkstvcwlvkUWXWzxJZZcaullLvktsuhiiy�x5FJLL3Opb5FFF1t8iSWXWnqZS3�LLLrY4kssudTSy1zmW2TRxRZfYsmlll7m8r�zDQUqNOgwYMKCDef5O�d�ClRo0GHAhAUbzvO04CpQoUGHARMWbDjP04erQIUGHQZMWLDhPE8zrgIVGnQYMGHBhvM8HbkKVGjQYcCEBRvO87TlKlChQYcBExZsOM�Tm6tAhQYdBkxYsOE8T4OuAhUadBgwYcGG8zxdugpUaNBhwIQFG86q3wcFKjToMGDCgg3nKR8UqNCgw4AJCzac59�zy0�BCg06DJiwYMN5nlJdBSo06DBgwoIN53lKdRWo0KDDgAkLNpznKdVVoEKDDgMmLNhwnqdUV4EKDToMmLBgw3meUl0FKjToMGDCgg3neUp1FajQoMOACQs2nOcp1VWgQoMOAyYs2HBW�z4oUKFBhwETFmw4T�mgQIUGHQZMWLDhPE�prgIVGnQYMGHBhvP8e��6KVChQYcBExZsOM9TqqtAhQYdBkxYsOE8T6muAhUadBgwYcGG8zylugpUaNBhwIQFG87zlOoqUKFBhwETFmw4z1Oqq0CFBh0GTFiw4TxPqa4CFRp0GDBhwYaz�vdBgQoNOgyYsGDDecoHBSo06DBgwoIN53lKdRWo0KDDgAkLNpznKdVVoEKDDgMmLNhwnn�fkH4KVGjQYcCEBRvO85TqKlChQYcBExZsOM9TqqtAhQYdBkxYsOE8T6muAhUadBgwYcGG8zylugpUaNBhwIQFG87zlOoqUKFBhwETFmw4a3wfFKjQoMOACQs2nKd8UKBCgw4DJizYcJ6nVFeBCg06DJiwYMN5nlJdBSo06DBgwoIN53lKdRWo0KDDgAkLNpzn33fwnwIVGnQYMGHBhvM8pboKVGjQYcCEBRvO85TqKlChQYcBExZsOM9TqqtAhQYdBkxYsOE8T6muAhUadBgwYcGGs�b3QYEKDToMmLBgw3nKBwUqNOgwYMKCDed5SnUVqNCgw4AJCzac5ynVVaBCgw4DJizYcJ6nVFeBCg06DJiwYMN5nlJdBSo06DBgwoIN5�n3L��nQIUGHQZMWLDhPE�prgIVGnQYMGHBhvM8pboKVGjQYcCEBRvO85TqKlChQYcBExZsOGt9HxSo0KDDgAkLNpynfFCgQoMOAyYs2HCep1RXgQoNOgyYsGDDeZ5SXQUqNOgwYMKCDed5SnUVqNCgw4AJCzac5ynVVaBCgw4DJizYcJ6nVFeBCg06DJiwYMN5�t1H�ClQoUGHARMWbDjPU6qrQIUGHQZMWLDhPE�prgIVGnQYMGHBhrP290GBCg06DJiwYMN5ygcFKjToMGDCgg3neUp1FajQoMOACQs2nOcp1VWgQoMOAyYs2HCep1RXgQoNOgyYsGDDeZ5SXQUqNOgwYMKCDed5SnUVqNCgw4AJCzac5ynVVaBCgw4DJizYcJ5�d6p�ClRo0GHAhAUbzvOU6ipQoUGHARMWbDjrfB8UqNCgw4AJCzacp3xQoEKDDgMmLNhwnqdUV4EKDToMmLBgw3meUl0FKjToMGDCgg3neUp1FajQoMOACQs2nOcp1VWgQoMOAyYs2HCep1RXgQoNOgyYsGDDeZ5SXQUqNOgwYMKCDed5SnUVqNCgw4AJCzac59�90J8CFRp0GDBhwYazyncvjH7��r��B�tOcgs�)#1 (0) { }
Output for 4.3.0 - 4.4.9
int(1856) object(someclass_enpn2smxbbunrvgxej3wzy2gskfrvpec7xlcg7m84i5s�o9�5pvkn���55�vx3�t3�q3�81�i9�yt�qtf5vf5ftk0cuwx2ljpzze5qlfiosutvgssy619dix�xzzdlhfl1hyqawxufi3ykkllb7ekkstvcwlvkuwxwzxjzzcaulllvktsuhiiy�x5fjll3opb5fff1t8iswxwnqzs3�lllry4kssudtsy1zmw2trxrzfysmlll7m8r�zdquqnogwymkcdef5o�d�clro0ghahaubzvo04cpqougharmwbdjp04erqiughqzmwldhpe8zrgivgnqymghbhvm8hbkkvgjqyccebrvo87tlklchqycbexzsom�tm6tahqydbkxysoe8t4ouahuadbgwycgg8zxdugpuanbhwiqfg86q3wcfkjtomgdcgg3nkr8uqncgw4ajczac59�zy0�bcg06djiwymn5nljdbso06dbgwoin53lkdrwo0kddgaklnpznkdvvoekddgmmlnhwnqduv4ekdtommlbgw3meul0fkjtomgdcgg3neup1fajqomoacqs2nocp1vwgqomoayys2hbw�z4oukfbhwetfmw4t�mgqiughqzmwldhpe�prgivgnqymghbhvp8e��6kvchqycbexzsom9tqqtahqydbkxysoe8t6muahuadbgwycgg8zylugpuanbhwiqfg87zlooqukfbhwetfmw4z1oqq0cfbh0gtfiw4txpqa4cfrp0gdbhwyaz�vdbgqonogyysgddecohbso06dbgwoin53lkdrwo0kddgaklnpznkdvvoekddgmmlnhwnn�fkh4kvgjqyccebrvo85tqklchqycbexzsom9tqqtahqydbkxysoe8t6muahuadbgwycgg8zylugpuanbhwiqfg87zlooqukfbhwetfmw4a3wffkjqomoacqs2nkd8ukbcgw4djizycj6nvfebcg06djiwymn5nljdbso06dbgwoin53lkdrwo0kddgaklnpzn33fwnwivgnqymghbhvm8pbokvgjqyccebrvo85tqklchqycbexzsom9tqqtahqydbkxysoe8t6muahuadbgwycggs�b3qyekdtommlbgw3nkbwuqnogwymkcded5snuvqncgw4ajczac5ynvvabcgw4djizycj6nvfebcg06djiwymn5nljdbso06dbgwoin5�n3l��nqiughqzmwldhpe�prgivgnqymghbhvm8pbokvgjqyccebrvo85tqklchqycbexzsogt9hxso0kddgaklnpynffcgqomoayys2hcep1rxgqonogyysgddez5sxquqnogwymkcded5snuvqncgw4ajczac5ynvvabcgw4djizycj6nvfebcg06djiwymn5�t1h�clqougharmwbdjpu6qrqiughqzmwldhpe�prgivgnqymghbhrp290gbcg06djiwymn5ygcfkjtomgdcgg3neup1fajqomoacqs2nocp1vwgqomoayys2hcep1rxgqonogyysgddez5sxquqnogwymkcded5snuvqncgw4ajczac5ynvvabcgw4djizycj5�d6p�clro0ghahaubzvou6ipqougharmwbdjrfb8uqncgw4ajczacp3xqoekddgmmlnhwnqduv4ekdtommlbgw3meul0fkjtomgdcgg3neup1fajqomoacqs2nocp1vwgqomoayys2hcep1rxgqonogyysgddez5sxquqnogwymkcded5snuvqncgw4ajczac59�90j8cfrp0gdbhwyazyncvjh7��r��b�tocgs�)(0) { }